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

Unified Diff: chrome/browser/ui/app_list/app_list_service_views.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
Index: chrome/browser/ui/app_list/app_list_service_views.cc
diff --git a/chrome/browser/ui/app_list/app_list_service_views.cc b/chrome/browser/ui/app_list/app_list_service_views.cc
index 13770b2b3d0361f9f2f478f30c1598787fb231de..7f1cd4aca03e00e357a1430c91991e6793fd55f4 100644
--- a/chrome/browser/ui/app_list/app_list_service_views.cc
+++ b/chrome/browser/ui/app_list/app_list_service_views.cc
@@ -105,8 +105,8 @@ void AppListServiceViews::ShowForProfileInternal(
if (state != app_list::AppListModel::INVALID_STATE) {
app_list::ContentsView* contents_view =
shower_.app_list()->app_list_main_view()->contents_view();
- contents_view->SetActivePage(contents_view->GetPageIndexForState(state),
- shower_.IsAppListVisible() /* animate */);
+ contents_view->SetActiveState(state,
+ shower_.IsAppListVisible() /* animate */);
}
shower_.ShowForCurrentProfile();
« no previous file with comments | « chrome/browser/apps/custom_launcher_page_browsertest_views.cc ('k') | chrome/browser/ui/ash/app_list/app_list_service_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698