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

Unified Diff: ui/app_list/views/start_page_view.cc

Issue 947903002: Change ContentsView::SetActivePage to use States rather than indexes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more_rebase Created 5 years, 9 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 | « ui/app_list/views/contents_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/start_page_view.cc
diff --git a/ui/app_list/views/start_page_view.cc b/ui/app_list/views/start_page_view.cc
index 401aae19d2d4f904b960661f1106920f3255eac3..1c62aca9be534cbe90dd5edc048b74845d4fd5ad 100644
--- a/ui/app_list/views/start_page_view.cc
+++ b/ui/app_list/views/start_page_view.cc
@@ -279,9 +279,7 @@ void StartPageView::MaybeOpenCustomLauncherPage() {
AppListModel::STATE_CUSTOM_LAUNCHER_PAGE,
AppListModel::STATE_LAST);
- int custom_page_index = contents_view->GetPageIndexForState(
- AppListModel::STATE_CUSTOM_LAUNCHER_PAGE);
- contents_view->SetActivePage(custom_page_index);
+ contents_view->SetActiveState(AppListModel::STATE_CUSTOM_LAUNCHER_PAGE);
}
void StartPageView::Reset() {
« no previous file with comments | « ui/app_list/views/contents_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698