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

Unified Diff: chrome/browser/android/ntp/most_visited_sites.h

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
Index: chrome/browser/android/ntp/most_visited_sites.h
diff --git a/chrome/browser/android/ntp/most_visited_sites.h b/chrome/browser/android/ntp/most_visited_sites.h
index 467983b9438e5492d71d722b658d387c852b80b0..7749df3bc1a22d6c9b87e234c286bde85231d40c 100644
--- a/chrome/browser/android/ntp/most_visited_sites.h
+++ b/chrome/browser/android/ntp/most_visited_sites.h
@@ -33,8 +33,9 @@ namespace user_prefs {
class PrefRegistrySyncable;
}
-class PopularSites;
-class Profile;
Marc Treib 2016/04/29 14:46:34 Profile one is actually still required for now.
sfiera 2016/04/29 14:50:54 Oh yeah, I guess we must be picking it up from SUS
+namespace variations {
+class VariationsService;
+}
// Tracks the list of most visited sites and their thumbnails.
//
@@ -85,7 +86,8 @@ class MostVisitedSites : public history::TopSitesObserver,
DISALLOW_COPY_AND_ASSIGN(Suggestion);
};
- explicit MostVisitedSites(Profile* profile);
+ explicit MostVisitedSites(Profile* profile,
+ variations::VariationsService* variations_service);
Bernhard Bauer 2016/04/29 14:35:45 Oops, forgot: This doesn't need to be explicit any
sfiera 2016/04/29 14:50:54 Done.
~MostVisitedSites() override;
@@ -212,6 +214,7 @@ class MostVisitedSites : public history::TopSitesObserver,
// The profile whose most visited sites will be queried.
Profile* profile_;
+ variations::VariationsService* variations_service_;
scoped_refptr<history::TopSites> top_sites_;
suggestions::SuggestionsService* suggestions_service_;
« no previous file with comments | « no previous file | chrome/browser/android/ntp/most_visited_sites.cc » ('j') | chrome/browser/android/ntp/popular_sites.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698