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

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: thread checker 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..d7451d3145548465a6628f3410cb8fe8fa366312 100644
--- a/chrome/browser/android/ntp/most_visited_sites.h
+++ b/chrome/browser/android/ntp/most_visited_sites.h
@@ -124,7 +124,8 @@ class MostVisitedSites : public history::TopSitesObserver,
DISALLOW_COPY_AND_ASSIGN(Suggestion);
};
- MostVisitedSites(PrefService* prefs,
+ MostVisitedSites(scoped_refptr<base::SequencedWorkerPool> blocking_pool,
Marc Treib 2016/05/25 08:39:26 It looks like you actually only need one TaskRunne
sfiera 2016/05/25 08:44:44 That's what I had initially, but bauerb asked to k
blundell 2016/05/25 09:00:24 Yeah, I think that given that this class explicitl
+ PrefService* prefs,
const TemplateURLService* template_url_service,
variations::VariationsService* variations_service,
net::URLRequestContextGetter* download_context,
@@ -271,6 +272,9 @@ class MostVisitedSites : public history::TopSitesObserver,
SuggestionsVector current_suggestions_;
+ base::ThreadChecker thread_checker_;
+ 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/most_visited_sites.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698