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

Unified Diff: chrome/browser/ui/webui/popular_sites_internals_message_handler.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
« no previous file with comments | « chrome/browser/android/ntp/most_visited_sites_bridge.cc ('k') | components/ntp_tiles/most_visited_sites.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
diff --git a/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc b/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
index af8dab1a7ce36e9d265caf208bb912ebcba1ceb7..55db0a3dd7bc6b2bf56cc9dd8c3a98418498b2f2 100644
--- a/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
+++ b/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
@@ -66,9 +66,11 @@ void PopularSitesInternalsMessageHandler::HandleRegisterForEvents(
content::BrowserThread::GetBlockingPool(), profile->GetPrefs(),
TemplateURLServiceFactory::GetForProfile(profile),
g_browser_process->variations_service(), profile->GetRequestContext(),
- ChromePopularSites::GetDirectory(), false,
+ ChromePopularSites::GetDirectory()));
+ popular_sites_->StartFetch(
+ false,
base::Bind(&PopularSitesInternalsMessageHandler::OnPopularSitesAvailable,
- base::Unretained(this), false)));
+ base::Unretained(this), false));
}
void PopularSitesInternalsMessageHandler::HandleUpdate(
@@ -107,7 +109,8 @@ void PopularSitesInternalsMessageHandler::HandleUpdate(
content::BrowserThread::GetBlockingPool(), prefs,
TemplateURLServiceFactory::GetForProfile(profile),
g_browser_process->variations_service(), profile->GetRequestContext(),
- ChromePopularSites::GetDirectory(), true, callback));
+ ChromePopularSites::GetDirectory()));
+ popular_sites_->StartFetch(true, callback);
}
void PopularSitesInternalsMessageHandler::HandleViewJson(
« no previous file with comments | « chrome/browser/android/ntp/most_visited_sites_bridge.cc ('k') | components/ntp_tiles/most_visited_sites.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698