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

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

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: use AppListModel to hide everything, also hide the custom page view 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.cc
diff --git a/chrome/browser/ui/app_list/start_page_service.cc b/chrome/browser/ui/app_list/start_page_service.cc
index c65a3e03a34990a4c1c607e69e34715d0100894b..6b4e4e811cf97fbf344b075e965b3ca65716b963 100644
--- a/chrome/browser/ui/app_list/start_page_service.cc
+++ b/chrome/browser/ui/app_list/start_page_service.cc
@@ -268,6 +268,7 @@ StartPageService::StartPageService(Profile* profile)
speech_auth_helper_(new SpeechAuthHelper(profile, &clock_)),
network_available_(true),
microphone_available_(true),
+ doodle_enabled_(true),
weak_factory_(this) {
// If experimental hotwording is enabled, then we're always "ready".
// Transitioning into the "hotword recognizing" state is handled by the
@@ -282,7 +283,8 @@ StartPageService::StartPageService(Profile* profile)
network_change_observer_.reset(new NetworkChangeObserver(this));
}
-StartPageService::~StartPageService() {}
+StartPageService::~StartPageService() {
+}
void StartPageService::AddObserver(StartPageObserver* observer) {
observers_.AddObserver(observer);
@@ -559,6 +561,9 @@ void StartPageService::UnloadContents() {
}
void StartPageService::FetchDoodleJson() {
+ if (!doodle_enabled_)
+ return;
+
GURL::Replacements replacements;
replacements.SetPathStr(kDoodleJsonPath);

Powered by Google App Engine
This is Rietveld 408576698