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); |