| 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);
|
|
|