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

Unified Diff: chrome/browser/android/ntp/most_visited_sites_bridge.cc

Issue 2179233003: Start PopularSites fetch from separate function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/ntp/most_visited_sites_bridge.cc
diff --git a/chrome/browser/android/ntp/most_visited_sites_bridge.cc b/chrome/browser/android/ntp/most_visited_sites_bridge.cc
index 1040bc1f7d7783bb3d66372d42f21dfd195ea628..75d03ff9410f3531e2682d06eac232d589cc41f2 100644
--- a/chrome/browser/android/ntp/most_visited_sites_bridge.cc
+++ b/chrome/browser/android/ntp/most_visited_sites_bridge.cc
@@ -157,14 +157,17 @@ void MostVisitedSitesBridge::JavaObserver::OnPopularURLsAvailable(
MostVisitedSitesBridge::MostVisitedSitesBridge(Profile* profile)
: supervisor_(profile),
+ popular_sites_(BrowserThread::GetBlockingPool(),
+ profile->GetPrefs(),
+ TemplateURLServiceFactory::GetForProfile(profile),
+ g_browser_process->variations_service(),
+ profile->GetRequestContext(),
+ ChromePopularSites::GetDirectory()),
most_visited_(BrowserThread::GetBlockingPool(),
profile->GetPrefs(),
- TemplateURLServiceFactory::GetForProfile(profile),
- g_browser_process->variations_service(),
- profile->GetRequestContext(),
- ChromePopularSites::GetDirectory(),
TopSitesFactory::GetForProfile(profile),
SuggestionsServiceFactory::GetForProfile(profile),
+ &popular_sites_,
&supervisor_) {
// Register the thumbnails debugging page.
// TODO(sfiera): find thumbnails a home. They don't belong here.

Powered by Google App Engine
This is Rietveld 408576698