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

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

Issue 2400783003: Ntp: show AllDismissedItem when all sections have been dismissed. (Closed)
Patch Set: 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 719164854ea26121b2b86415fdea01da5166562a..4531984b341e94a55f84ffe30f54efdd848bdea4 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