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

Unified Diff: chrome/browser/resources/app_list/start_page.js

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
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/start_page_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/app_list/start_page.js
diff --git a/chrome/browser/resources/app_list/start_page.js b/chrome/browser/resources/app_list/start_page.js
index e2055924bb0fb9754be036696958816b3e400720..1d96e3594c9d7c001bb0cc9b59f21efe2c52ceff 100644
--- a/chrome/browser/resources/app_list/start_page.js
+++ b/chrome/browser/resources/app_list/start_page.js
@@ -134,11 +134,16 @@ cr.define('appList.startPage', function() {
speechManager.toggleSpeechRecognition();
}
+ function onSearchEngineChanged(is_google) {
+ $('logo_container').style.display = is_google ? 'block' : 'none';
Matt Giuca 2015/02/10 08:27:05 Can't we just hide the whole WebContents in this c
calamity 2015/02/13 02:55:24 That's a good point. Done.
+ }
+
return {
initialize: initialize,
setHotwordEnabled: setHotwordEnabled,
setNaclArch: setNaclArch,
onAppListDoodleUpdated: onAppListDoodleUpdated,
+ onSearchEngineChanged: onSearchEngineChanged,
onAppListShown: onAppListShown,
onAppListHidden: onAppListHidden,
toggleSpeechRecognition: toggleSpeechRecognition
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/start_page_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698