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

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

Issue 2205233002: Combine all suggestions factories into ContentSuggestionsServiceFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bernhard's comments 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.h
diff --git a/chrome/browser/ui/webui/snippets_internals_message_handler.h b/chrome/browser/ui/webui/snippets_internals_message_handler.h
index 036e1552ae556593e5fbd5cbcc3002fc2cdac2da..0e127d83b636d31a4fd512ca4a43289cf4afff40 100644
--- a/chrome/browser/ui/webui/snippets_internals_message_handler.h
+++ b/chrome/browser/ui/webui/snippets_internals_message_handler.h
@@ -22,7 +22,6 @@ class ListValue;
// The implementation for the chrome://snippets-internals page.
class SnippetsInternalsMessageHandler
: public content::WebUIMessageHandler,
- public ntp_snippets::NTPSnippetsServiceObserver,
public ntp_snippets::ContentSuggestionsService::Observer {
public:
SnippetsInternalsMessageHandler();
@@ -32,12 +31,6 @@ class SnippetsInternalsMessageHandler
// content::WebUIMessageHandler:
void RegisterMessages() override;
- // ntp_snippets::NTPSnippetsServiceObserver:
- void NTPSnippetsServiceLoaded() override;
- void NTPSnippetsServiceShutdown() override;
- void NTPSnippetsServiceDisabledReasonChanged(
- ntp_snippets::DisabledReason disabled_reason) override;
-
// ntp_snippets::ContentSuggestionsService::Observer:
void OnNewSuggestions() override;
void OnCategoryStatusChanged(
@@ -60,10 +53,6 @@ class SnippetsInternalsMessageHandler
void SendBoolean(const std::string& name, bool value);
void SendString(const std::string& name, const std::string& value);
- ScopedObserver<ntp_snippets::NTPSnippetsService,
- ntp_snippets::NTPSnippetsServiceObserver>
- ntp_snippets_service_observer_;
-
ScopedObserver<ntp_snippets::ContentSuggestionsService,
ntp_snippets::ContentSuggestionsService::Observer>
content_suggestions_service_observer_;
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/ui/webui/snippets_internals_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698