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

Unified Diff: chrome/browser/ui/app_list/start_page_service.h

Issue 907833002: Hide experimental app list Google logo and custom launcher page when search engine is not Google. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_app_list_bg_color
Patch Set: Created 5 years, 10 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/app_list/start_page_service.h
diff --git a/chrome/browser/ui/app_list/start_page_service.h b/chrome/browser/ui/app_list/start_page_service.h
index 7a7872b1c3e8eb3b058eb86c02d9eaeef8b0d563..23064c4cc93e712c3c46733f830f5bbc2c6b96ef 100644
--- a/chrome/browser/ui/app_list/start_page_service.h
+++ b/chrome/browser/ui/app_list/start_page_service.h
@@ -19,6 +19,7 @@
#include "base/time/default_clock.h"
#include "chrome/browser/ui/app_list/speech_recognizer_delegate.h"
#include "components/keyed_service/core/keyed_service.h"
+#include "components/search_engines/template_url_service_observer.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "net/url_request/url_fetcher_delegate.h"
@@ -51,7 +52,8 @@ class StartPageObserver;
class StartPageService : public KeyedService,
public content::WebContentsObserver,
public net::URLFetcherDelegate,
- public SpeechRecognizerDelegate {
+ public SpeechRecognizerDelegate,
+ public TemplateURLServiceObserver {
public:
typedef std::vector<scoped_refptr<const extensions::Extension> >
ExtensionList;
@@ -88,6 +90,9 @@ class StartPageService : public KeyedService,
void GetSpeechAuthParameters(std::string* auth_scope,
std::string* auth_token) override;
+ // Overridden from TemplateURLServiceObserver:
+ void OnTemplateURLServiceChanged() override;
+
protected:
// Protected for testing.
explicit StartPageService(Profile* profile);

Powered by Google App Engine
This is Rietveld 408576698