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

Unified Diff: ui/app_list/views/app_list_main_view.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: 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: ui/app_list/views/app_list_main_view.h
diff --git a/ui/app_list/views/app_list_main_view.h b/ui/app_list/views/app_list_main_view.h
index 971bb8354d1f2088a9d64f653fd9279bc3f56518..073f2396a17738c5ba622e8e654bbe0ece3215c2 100644
--- a/ui/app_list/views/app_list_main_view.h
+++ b/ui/app_list/views/app_list_main_view.h
@@ -81,8 +81,12 @@ class APP_LIST_EXPORT AppListMainView : public views::View,
// Initialize widgets that live inside the app list's main widget.
void InitWidgets();
+ bool ShouldShowCustomLauncherPage() const;
+ void UpdateCustomLauncherPageVisibility();
+
// Overridden from AppListModelObserver:
void OnCustomLauncherPageEnabledStateChanged(bool enabled) override;
+ void OnSearchEngineIsGoogleChanged(bool is_google) override;
private:
class IconLoader;

Powered by Google App Engine
This is Rietveld 408576698