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

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

Issue 2012473002: Remove NTP dependency on //content/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 14b3e636a238272ea55742e40f5addd24c8b8455..2e80584411bf44f8ec31fefc10324268b8e01404 100644
--- a/chrome/browser/android/ntp/most_visited_sites.h
+++ b/chrome/browser/android/ntp/most_visited_sites.h
@@ -124,14 +124,17 @@ class MostVisitedSites : public history::TopSitesObserver,
DISALLOW_COPY_AND_ASSIGN(Suggestion);
};
- MostVisitedSites(PrefService* prefs,
- const TemplateURLService* template_url_service,
- variations::VariationsService* variations_service,
- net::URLRequestContextGetter* download_context,
- const base::FilePath& popular_sites_directory,
- scoped_refptr<history::TopSites> top_sites,
- suggestions::SuggestionsService* suggestions,
- MostVisitedSitesSupervisor* supervisor);
+ MostVisitedSites(
+ scoped_refptr<base::SingleThreadTaskRunner> ui_thread,
+ scoped_refptr<base::SequencedWorkerPool> blocking_pool,
+ PrefService* prefs,
+ const TemplateURLService* template_url_service,
+ variations::VariationsService* variations_service,
+ net::URLRequestContextGetter* download_context,
+ const base::FilePath& popular_sites_directory,
+ scoped_refptr<history::TopSites> top_sites,
+ suggestions::SuggestionsService* suggestions,
+ MostVisitedSitesSupervisor* supervisor);
~MostVisitedSites() override;
@@ -271,6 +274,9 @@ class MostVisitedSites : public history::TopSitesObserver,
SuggestionsVector current_suggestions_;
+ scoped_refptr<base::SingleThreadTaskRunner> ui_thread_;
+ scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
+
// For callbacks may be run after destruction.
base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_;
« 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