App List: Refactor ContentsSwitcherView so it doesn't hard-code pages.
Removed hard-coded addition of start page and apps buttons in the ContentsSwitcherView constructor. Instead, adding a page to ContentsView automatically adds the appropriate button to ContentsSwitcherView. ContentsView and ContentsSwitcherView now include pointers to one another (so initialization of ContentsView is split into a separate Init phase). ContentsView::AddLauncherPage now takes a resource ID. BUG=386004 Review URL: https://codereview.chromium.org/336313010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278674 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment