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

Unified Diff: chrome/browser/ui/ash/app_list/app_list_service_ash.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: 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: chrome/browser/ui/ash/app_list/app_list_service_ash.cc
diff --git a/chrome/browser/ui/ash/app_list/app_list_service_ash.cc b/chrome/browser/ui/ash/app_list/app_list_service_ash.cc
index 38da2f7cd89318317b0086ecb88f148d76291b36..929baf15c8be1bdde08785487dcb1db907acdf5c 100644
--- a/chrome/browser/ui/ash/app_list/app_list_service_ash.cc
+++ b/chrome/browser/ui/ash/app_list/app_list_service_ash.cc
@@ -49,8 +49,7 @@ void AppListServiceAsh::ShowAndSwitchToState(
app_list::ContentsView* contents_view =
app_list_view->app_list_main_view()->contents_view();
- contents_view->SetActivePage(contents_view->GetPageIndexForState(state),
- app_list_was_open /* animate */);
+ contents_view->SetActivePage(state, app_list_was_open /* animate */);
}
void AppListServiceAsh::Init(Profile* initial_profile) {

Powered by Google App Engine
This is Rietveld 408576698