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

Unified Diff: chrome/browser/android/ntp/ntp_snippets_bridge.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: chrome/browser/android/ntp/ntp_snippets_bridge.cc
diff --git a/chrome/browser/android/ntp/ntp_snippets_bridge.cc b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
index 026dfe42a4ce38f7c3f33af2c304a6bad634a160..122661892900ed88b9c5e87534237edb00a30f05 100644
--- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
@@ -434,6 +434,15 @@ void NTPSnippetsBridge::OnSuggestionInvalidated(
ConvertUTF8ToJavaString(env, suggestion_id.id_within_category()).obj());
}
+void NTPSnippetsBridge::OnFullRefreshRequired() {
+ if (observer_.is_null()) {
+ return;
+ }
+
+ JNIEnv* env = base::android::AttachCurrentThread();
+ Java_SnippetsBridge_onFullRefreshRequired(env, observer_.obj());
+}
+
void NTPSnippetsBridge::ContentSuggestionsServiceShutdown() {
observer_.Reset();
content_suggestions_service_observer_.Remove(content_suggestions_service_);
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_bridge.h ('k') | chrome/browser/ntp_snippets/content_suggestions_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698