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

Unified Diff: chrome/browser/ui/webui/popular_sites_internals_message_handler.cc

Issue 1930413002: Pull g_browser_process out of PopularSites. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/popular_sites.cc ('k') | no next file » | 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 9534044af3b1c1f3e2929264c5974cec12b53a14..7898c159bffba645d87ae4d63b66e77f300596be 100644
--- a/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
+++ b/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
@@ -13,6 +13,7 @@
#include "base/task_runner_util.h"
#include "base/values.h"
#include "chrome/browser/android/ntp/popular_sites.h"
+#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "components/url_formatter/url_fixer.h"
@@ -60,6 +61,7 @@ void PopularSitesInternalsMessageHandler::HandleRegisterForEvents(
popular_sites_.reset(new PopularSites(
profile->GetPrefs(),
TemplateURLServiceFactory::GetForProfile(profile),
+ g_browser_process->variations_service(),
profile->GetRequestContext(),
country, version, false,
base::Bind(&PopularSitesInternalsMessageHandler::OnPopularSitesAvailable,
@@ -91,6 +93,7 @@ void PopularSitesInternalsMessageHandler::HandleDownload(
popular_sites_.reset(new PopularSites(
profile->GetPrefs(),
TemplateURLServiceFactory::GetForProfile(profile),
+ g_browser_process->variations_service(),
profile->GetRequestContext(),
country, version, true, callback));
}
« no previous file with comments | « chrome/browser/android/ntp/popular_sites.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698