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

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

Issue 2000233002: [NTP Snippets] Unschedule fetches when the service should be disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SnippetsDB
Patch Set: fix typos Created 4 years, 6 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 be78905744bdf628d4d7a4547c87b1826a9356e3..4cbcbc089e0f7995d0064a8ac99d04ea92e0c09f 100644
--- a/chrome/browser/ui/webui/snippets_internals_message_handler.cc
+++ b/chrome/browser/ui/webui/snippets_internals_message_handler.cc
@@ -121,6 +121,7 @@ void SnippetsInternalsMessageHandler::HandleClearDiscarded(
DCHECK_EQ(0u, args->GetSize());
ntp_snippets_service_->ClearDiscardedSnippets();
+ ntp_snippets_service_->FetchSnippets();
Marc Treib 2016/06/07 08:55:39 Hm. So this is the only call site for ClearDiscard
dgn 2016/06/07 11:22:46 I think so too. And when debugging the ntp, after
SendDiscardedSnippets();
}
« no previous file with comments | « no previous file | components/ntp_snippets/ntp_snippets_service.h » ('j') | components/ntp_snippets/ntp_snippets_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698