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

Unified Diff: chrome/browser/android/ntp/ntp_snippets_bridge.cc

Issue 2400783003: Ntp: show AllDismissedItem when all sections have been dismissed. (Closed)
Patch Set: Address review comments. Created 4 years, 2 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/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 fe547bc2c60b743b4c32839c01d9f391d5f2c7a2..e71669651bf2db3baa4de25f5ca6e1bf6229243b 100644
--- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
@@ -260,6 +260,12 @@ void NTPSnippetsBridge::DismissCategory(JNIEnv* env,
content_suggestions_service_->DismissCategory(CategoryFromIDValue(category));
}
+void NTPSnippetsBridge::RestoreDismissedCategories(
+ JNIEnv* env,
+ const JavaParamRef<jobject>& obj) {
+ content_suggestions_service_->RestoreDismissedCategories();
+}
+
void NTPSnippetsBridge::GetURLVisited(JNIEnv* env,
const JavaParamRef<jobject>& obj,
const JavaParamRef<jobject>& jcallback,

Powered by Google App Engine
This is Rietveld 408576698