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

Unified Diff: chrome/browser/ui/webui/snippets_internals_message_handler.cc

Issue 2244793002: Remove deleted offline page suggestions from opened NTPs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/ui/webui/snippets_internals_message_handler.cc
diff --git a/chrome/browser/ui/webui/snippets_internals_message_handler.cc b/chrome/browser/ui/webui/snippets_internals_message_handler.cc
index 4efe2c9738cd61747e432333512923c1a827688b..841224a5f25c4a116f8f78aaefe2b0f141c6eb00 100644
--- a/chrome/browser/ui/webui/snippets_internals_message_handler.cc
+++ b/chrome/browser/ui/webui/snippets_internals_message_handler.cc
@@ -128,6 +128,14 @@ void SnippetsInternalsMessageHandler::OnCategoryStatusChanged(
SendContentSuggestions();
}
+void SnippetsInternalsMessageHandler::OnSuggestionInvalidated(
+ ntp_snippets::Category category,
+ const std::string& suggestion_id) {
+ if (!dom_loaded_)
+ return;
+ SendContentSuggestions();
+}
+
void SnippetsInternalsMessageHandler::ContentSuggestionsServiceShutdown() {}
void SnippetsInternalsMessageHandler::HandleRefreshContent(

Powered by Google App Engine
This is Rietveld 408576698