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

Unified Diff: components/ntp_snippets/remote/remote_suggestions_provider.cc

Issue 2519053002: 📰 Let the backend trigger sign in related refreshes (Closed)
Patch Set: Fix iOS build Created 4 years, 1 month 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: components/ntp_snippets/remote/remote_suggestions_provider.cc
diff --git a/components/ntp_snippets/remote/remote_suggestions_provider.cc b/components/ntp_snippets/remote/remote_suggestions_provider.cc
index fe0c01a8cea1c56a265ba5ea6c79d5e33e90eee3..3e25eb6013cc868eb5019ed9e6dbeb7b44e2282a 100644
--- a/components/ntp_snippets/remote/remote_suggestions_provider.cc
+++ b/components/ntp_snippets/remote/remote_suggestions_provider.cc
@@ -504,6 +504,16 @@ void RemoteSuggestionsProvider::ClearCachedSuggestions(Category category) {
}
}
+void RemoteSuggestionsProvider::OnSignInStateChanged() {
+ // Make sure the status service is registered and we already initialised its
+ // start state.
+ if (!initialized()) {
+ return;
+ }
+
+ snippets_status_service_->OnSignInStateChanged();
+}
+
void RemoteSuggestionsProvider::GetDismissedSuggestionsForDebugging(
Category category,
const DismissedSuggestionsCallback& callback) {

Powered by Google App Engine
This is Rietveld 408576698