Update to Chromium revision 194165.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1221 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2013-04-15 22:16:01 +00:00
parent 414befcd92
commit bb6eeee686
47 changed files with 154 additions and 121 deletions

View File

@@ -4,6 +4,7 @@
#include "include/cef_urlrequest.h"
#include "libcef/browser/browser_urlrequest_impl.h"
#include "libcef/common/content_client.h"
#include "libcef/renderer/render_urlrequest_impl.h"
#include "base/logging.h"
@@ -19,19 +20,19 @@ CefRefPtr<CefURLRequest> CefURLRequest::Create(
return NULL;
}
if (!MessageLoop::current()) {
if (!base::MessageLoop::current()) {
NOTREACHED() << "called on invalid thread";
return NULL;
}
if (content::GetContentClient()->browser()) {
if (CefContentClient::Get()->browser()) {
// In the browser process.
CefRefPtr<CefBrowserURLRequest> impl =
new CefBrowserURLRequest(request, client);
if (impl->Start())
return impl.get();
return NULL;
} else if (content::GetContentClient()->renderer()) {
} else if (CefContentClient::Get()->renderer()) {
// In the render process.
CefRefPtr<CefRenderURLRequest> impl =
new CefRenderURLRequest(request, client);