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

Unified Diff: ui/app_list/views/contents_view.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: ui/app_list/views/contents_view.cc
diff --git a/ui/app_list/views/contents_view.cc b/ui/app_list/views/contents_view.cc
index 2fdbd559f5e1864679e8b71269503f5754446a40..c70e2694748a07da2bf71c8309b31242d9919005 100644
--- a/ui/app_list/views/contents_view.cc
+++ b/ui/app_list/views/contents_view.cc
@@ -414,11 +414,6 @@ gfx::Rect ContentsView::GetCustomPageCollapsedBounds() const {
return bounds;
}
-bool ContentsView::ShouldShowCustomPageClickzone() const {
- return custom_page_view_ && IsStateActive(AppListModel::STATE_START) &&
- app_list_main_view_->model()->custom_launcher_page_enabled();
-}
-
bool ContentsView::Back() {
AppListModel::State state = view_to_state_[GetActivePageIndex()];
switch (state) {
@@ -528,7 +523,7 @@ void ContentsView::SelectedPageChanged(int old_selected, int new_selected) {
// Show or hide the custom page view, based on whether it is enabled.
if (custom_page_view_) {
custom_page_view_->SetVisible(
- app_list_main_view_->model()->custom_launcher_page_enabled());
+ app_list_main_view_->ShouldShowCustomLauncherPage());
}
} else {
start_page_view_->OnHide();

Powered by Google App Engine
This is Rietveld 408576698