Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: chrome/browser/prerender/prerender_manager.cc

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prerender/prerender_manager.cc
===================================================================
--- chrome/browser/prerender/prerender_manager.cc (revision 110303)
+++ chrome/browser/prerender/prerender_manager.cc (working copy)
@@ -37,7 +37,6 @@
#include "content/browser/cancelable_request.h"
#include "content/browser/debugger/render_view_devtools_agent_host.h"
#include "content/browser/in_process_webkit/session_storage_namespace.h"
-#include "content/browser/renderer_host/render_process_host.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/renderer_host/resource_dispatcher_host.h"
#include "content/browser/tab_contents/render_view_host_manager.h"
@@ -47,6 +46,7 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_source.h"
+#include "content/public/browser/render_process_host.h"
using content::BrowserThread;
@@ -1138,10 +1138,10 @@
// Each render process is guaranteed to only hold RenderViews owned by the
// same BrowserContext. This is enforced by
// RenderProcessHost::GetExistingProcessHost.
- if (!render_process_host || !render_process_host->browser_context())
+ if (!render_process_host || !render_process_host->GetBrowserContext())
return NULL;
Profile* profile = Profile::FromBrowserContext(
- render_process_host->browser_context());
+ render_process_host->GetBrowserContext());
if (!profile)
return NULL;
return PrerenderManagerFactory::GetInstance()->GetForProfile(profile);

Powered by Google App Engine
This is Rietveld 408576698