| 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 03e5c0ad7e27ea6d4fcf58ce6a4e5599949a6925..e4e6aae1abde2f1cb272d32dd12be96c08eab9c8 100644
|
| --- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
| +++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
| @@ -228,6 +228,18 @@ void NTPSnippetsBridge::OnCategoryStatusChanged(Category category,
|
| static_cast<int>(new_status));
|
| }
|
|
|
| +void NTPSnippetsBridge::OnSuggestionInvalidated(
|
| + Category category,
|
| + const std::string& suggestion_id) {
|
| + if (observer_.is_null())
|
| + return;
|
| +
|
| + JNIEnv* env = base::android::AttachCurrentThread();
|
| + Java_SnippetsBridge_onSuggestionInvalidated(
|
| + env, observer_.obj(), static_cast<int>(category.id()),
|
| + ConvertUTF8ToJavaString(env, suggestion_id).obj());
|
| +}
|
| +
|
| void NTPSnippetsBridge::ContentSuggestionsServiceShutdown() {
|
| observer_.Reset();
|
| content_suggestions_service_observer_.Remove(content_suggestions_service_);
|
|
|