Change ContentsView::SetActivePage to use States rather than indexes.
commita61444ac0577e22bd3b20bcee833b2d199f4f512
authorcalamity <calamity@chromium.org>
Fri, 20 Mar 2015 04:13:13 +0000 (19 21:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 20 Mar 2015 04:13:58 +0000 (20 04:13 +0000)
tree7bb3b7c89a30db11be8211b0427b9a6f3eb2b35a
parentf3af70d59497812619a1058a5a6848a5c16e1236
Change ContentsView::SetActivePage to use States rather than indexes.

This CL makes the ContentsView's API state-keyed rather than page index
keyed. This removes cruft from callers of SetActivePage and will
support further refactors.

BUG=455059
TBR=jamescook@chromium.org, benwells@chromium.org

Review URL: https://codereview.chromium.org/947903002

Cr-Commit-Position: refs/heads/master@{#321513}
chrome/browser/apps/custom_launcher_page_browsertest_views.cc
chrome/browser/ui/app_list/app_list_service_views.cc
chrome/browser/ui/ash/app_list/app_list_service_ash.cc
ui/app_list/views/all_apps_tile_item_view.cc
ui/app_list/views/app_list_main_view.cc
ui/app_list/views/app_list_main_view_unittest.cc
ui/app_list/views/app_list_view_unittest.cc
ui/app_list/views/contents_view.cc
ui/app_list/views/contents_view.h
ui/app_list/views/start_page_view.cc