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