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 641c66ba8673ce979e3f22ab2c38b77a2dfae87d..2f5b743c0917237707b4b887e0767afbd11aed69 100644 |
--- a/chrome/browser/ui/app_list/start_page_service.cc |
+++ b/chrome/browser/ui/app_list/start_page_service.cc |
@@ -145,8 +145,14 @@ void StartPageService::ToggleSpeechRecognition() { |
} |
content::WebContents* StartPageService::GetStartPageContents() { |
- return CommandLine::ForCurrentProcess()->HasSwitch( |
- ::switches::kShowAppListStartPage) ? contents_.get() : NULL; |
+ return (app_list::switches::IsExperimentalAppListEnabled() || |
+ app_list::switches::IsExperimentalAppListEnabled()) |
xiyuan
2014/03/14 17:00:54
A || A is strange. We should just keep one.
calamity
2014/05/07 06:11:52
Done.
|
+ ? contents_.get() |
+ : NULL; |
+} |
+ |
+content::WebContents* StartPageService::GetSpeechRecognitionContents() { |
+ return app_list::switches::IsVoiceSearchEnabled() ? contents_.get() : NULL; |
} |
content::WebContents* StartPageService::GetSpeechRecognitionContents() { |
xiyuan
2014/03/14 17:00:54
Unintended copy-n-paste?
calamity
2014/05/07 06:11:52
Done.
|