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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 2321083002: [NoStatePrefetch] Add performance histograms. (Closed)
Patch Set: Review comments 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/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index a0e5897d7a52551babfceaed467d0c6b6580238f..33718c4c676eef81cfe73b9bed3c39cf3714fb4c 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -560,7 +560,7 @@ TabAndroid::TabLoadStatus TabAndroid::LoadUrl(
// Note in incognito mode, we don't have a PrerenderManager.
prerender::PrerenderManager* prerender_manager =
- prerender::PrerenderManagerFactory::GetForProfile(GetProfile());
+ prerender::PrerenderManagerFactory::GetForBrowserContext(GetProfile());
if (prerender_manager) {
bool prefetched_page_loaded = HasPrerenderedUrl(gurl);
// Getting the load status before MaybeUsePrerenderedPage() b/c it resets.
@@ -715,7 +715,7 @@ prerender::PrerenderManager* TabAndroid::GetPrerenderManager() const {
Profile* profile = GetProfile();
if (!profile)
return NULL;
- return prerender::PrerenderManagerFactory::GetForProfile(profile);
+ return prerender::PrerenderManagerFactory::GetForBrowserContext(profile);
}
// static

Powered by Google App Engine
This is Rietveld 408576698