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

Unified Diff: chrome/browser/search/suggestions/suggestions_source.cc

Issue 473123002: [Most Visited] Check for Sync state when using SuggestionsService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean Created 6 years, 4 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/search/suggestions/suggestions_source.cc
diff --git a/chrome/browser/search/suggestions/suggestions_source.cc b/chrome/browser/search/suggestions/suggestions_source.cc
index aceabcce05a719c14e1ff1f4ee37707be5bc4344..ab67e2bd3f22e7e469ec71d5c7494cdd560a9205 100644
--- a/chrome/browser/search/suggestions/suggestions_source.cc
+++ b/chrome/browser/search/suggestions/suggestions_source.cc
@@ -126,9 +126,11 @@ void SuggestionsSource::StartDataRequest(
return;
}
+ // Since it's a debugging page, it's fine to specify that sync state is
+ // initialized.
suggestions_service->FetchSuggestionsData(
- base::Bind(&SuggestionsSource::OnSuggestionsAvailable,
- weak_ptr_factory_.GetWeakPtr(), callback));
+ true, true, base::Bind(&SuggestionsSource::OnSuggestionsAvailable,
+ weak_ptr_factory_.GetWeakPtr(), callback));
}
std::string SuggestionsSource::GetMimeType(const std::string& path) const {

Powered by Google App Engine
This is Rietveld 408576698