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

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

Issue 1934583002: PopularSites: don't wait for a SuggestionsService network request (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..86b0927dc2a0ef955b1558709f490eeab1ef6941 100644
--- a/chrome/browser/android/ntp/most_visited_sites.h
+++ b/chrome/browser/android/ntp/most_visited_sites.h
@@ -89,9 +89,9 @@ class MostVisitedSites : public history::TopSitesObserver,
~MostVisitedSites() override;
- // Does not take ownership of |observer|, which must outlive this object.
- void SetMostVisitedURLsObserver(
- Observer* observer, int num_sites);
+ // Does not take ownership of |observer|, which must outlive this object and
+ // must not be null.
Bernhard Bauer 2016/04/29 14:15:31 From a general API POV, this seems a bit problemat
Marc Treib 2016/04/29 14:18:57 True, but I'm really just documenting the pre-exis
+ void SetMostVisitedURLsObserver(Observer* observer, int num_sites);
using ThumbnailCallback = base::Callback<
void(bool /* is_local_thumbnail */, const SkBitmap* /* bitmap */)>;
@@ -111,7 +111,7 @@ class MostVisitedSites : public history::TopSitesObserver,
// TODO(treib): use SuggestionsVector in internal functions. crbug.com/601734
using SuggestionsPtrVector = std::vector<std::unique_ptr<Suggestion>>;
- void QueryMostVisitedURLs();
+ void BuildCurrentSuggestions();
// Initialize the query to Top Sites. Called if the SuggestionsService is not
// enabled, or if it returns no data.
« 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