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

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

Issue 2400783003: Ntp: show AllDismissedItem when all sections have been dismissed. (Closed)
Patch Set: Rebase. 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 d5167a16aa51dba5503b49d5a365ec994da232dc..fc4ce22553d37f130f3036d79e979832b99bbe0f 100644
--- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
@@ -251,6 +251,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::OnPageShown(
JNIEnv* env,
const JavaParamRef<jobject>& obj,
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_bridge.h ('k') | components/ntp_snippets/content_suggestions_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698