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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 7467012: Modifying prefetch to account for multi-profile. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Modifying prefetch to account for multi-profile. Created 9 years, 3 months 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/chrome_content_browser_client.cc
===================================================================
--- chrome/browser/chrome_content_browser_client.cc (revision 100345)
+++ chrome/browser/chrome_content_browser_client.cc (working copy)
@@ -153,7 +153,13 @@
void ChromeContentBrowserClient::RenderViewHostCreated(
RenderViewHost* render_view_host) {
- new ChromeRenderViewHostObserver(render_view_host);
+
+ SiteInstance* site_instance = render_view_host->site_instance();
+ Profile* profile = Profile::FromBrowserContext(
+ site_instance->browsing_instance()->browser_context());
+
+ new ChromeRenderViewHostObserver(render_view_host,
+ profile->GetNetworkPredictor());
new ExtensionMessageHandler(render_view_host);
}

Powered by Google App Engine
This is Rietveld 408576698