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

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

Issue 2340333002: 📰 Make status cards swipable (Closed)
Patch Set: fix nit Created 4 years, 3 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 010291582ebc6a242d6cbae4acd2370ac1e55b71..96731edd97c22b61d835ead1fb2888e0983d44b1 100644
--- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
@@ -215,6 +215,12 @@ void NTPSnippetsBridge::DismissSuggestion(
ConvertJavaStringToUTF8(env, suggestion_id));
}
+void NTPSnippetsBridge::DismissCategory(JNIEnv* env,
+ const JavaParamRef<jobject>& obj,
+ jint category) {
+ content_suggestions_service_->DismissCategory(CategoryFromIDValue(category));
+}
+
void NTPSnippetsBridge::GetURLVisited(JNIEnv* env,
const JavaParamRef<jobject>& obj,
const JavaParamRef<jobject>& jcallback,
« 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