Fix mac compile errors.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@160 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
890200a098
commit
7b91ff9266
|
@ -199,7 +199,7 @@ class RequestProxy : public net::URLRequest::Delegate,
|
||||||
if (allow_download &&
|
if (allow_download &&
|
||||||
webkit_glue::ShouldDownload(content_disposition, info.mime_type)) {
|
webkit_glue::ShouldDownload(content_disposition, info.mime_type)) {
|
||||||
FilePath path(net::GetSuggestedFilename(url, content_disposition,
|
FilePath path(net::GetSuggestedFilename(url, content_disposition,
|
||||||
info.charset, FilePath(L"download")));
|
info.charset, FilePath(FILE_PATH_LITERAL("download"))));
|
||||||
CefRefPtr<CefDownloadHandler> dl_handler;
|
CefRefPtr<CefDownloadHandler> dl_handler;
|
||||||
if (handler->HandleDownloadResponse(browser_, info.mime_type,
|
if (handler->HandleDownloadResponse(browser_, info.mime_type,
|
||||||
path.value(), info.content_length, dl_handler) ==
|
path.value(), info.content_length, dl_handler) ==
|
||||||
|
|
|
@ -9,11 +9,6 @@
|
||||||
#include "base/message_pump_mac.h"
|
#include "base/message_pump_mac.h"
|
||||||
#include "third_party/WebKit/WebKit/mac/WebCoreSupport/WebSystemInterface.h"
|
#include "third_party/WebKit/WebKit/mac/WebCoreSupport/WebSystemInterface.h"
|
||||||
|
|
||||||
namespace {
|
|
||||||
|
|
||||||
// Memory autorelease pool.
|
|
||||||
static NSAutoreleasePool* g_autopool = nil;
|
|
||||||
|
|
||||||
// CrAppProtocol implementation.
|
// CrAppProtocol implementation.
|
||||||
@interface CrApplication : NSApplication<CrAppProtocol> {
|
@interface CrApplication : NSApplication<CrAppProtocol> {
|
||||||
@private
|
@private
|
||||||
|
@ -35,6 +30,11 @@ static NSAutoreleasePool* g_autopool = nil;
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
|
// Memory autorelease pool.
|
||||||
|
static NSAutoreleasePool* g_autopool = nil;
|
||||||
|
|
||||||
void RunLoopObserver(CFRunLoopObserverRef observer, CFRunLoopActivity activity,
|
void RunLoopObserver(CFRunLoopObserverRef observer, CFRunLoopActivity activity,
|
||||||
void* info)
|
void* info)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue