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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2321083002: [NoStatePrefetch] Add performance histograms. (Closed)
Patch Set: Implement discussion conclusions Created 4 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
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 580f29310c20e9769db81c6aaba664d84e692c65..99a25cd5420e795454761cc6975b1d152e8a58b7 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1246,7 +1246,7 @@ bool ChromeContentBrowserClient::MayReuseHost(
Profile* profile = Profile::FromBrowserContext(
process_host->GetBrowserContext());
prerender::PrerenderManager* prerender_manager =
- prerender::PrerenderManagerFactory::GetForProfile(profile);
+ prerender::PrerenderManagerFactory::GetForBrowserContext(profile);
if (prerender_manager &&
!prerender_manager->MayReuseProcessHost(process_host)) {
return false;
@@ -3146,7 +3146,7 @@ void ChromeContentBrowserClient::OverridePageVisibilityState(
Profile* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
prerender::PrerenderManager* prerender_manager =
- prerender::PrerenderManagerFactory::GetForProfile(profile);
+ prerender::PrerenderManagerFactory::GetForBrowserContext(profile);
if (prerender_manager &&
prerender_manager->IsWebContentsPrerendering(web_contents, nullptr)) {
*visibility_state = blink::WebPageVisibilityStatePrerender;

Powered by Google App Engine
This is Rietveld 408576698