Fix Win8 metro startup crash from window switcher button
commitc6fa983711835d7b7407c8d7e23221b4ecb82a0e
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 24 May 2013 20:01:27 +0000 (24 20:01 +0000)
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 24 May 2013 20:01:27 +0000 (24 20:01 +0000)
treead942c4479a41dcffe40f66ab06e702214d0ca42
parentf2dc06f6eed29ca8feb520c07d44a54670319e99
Fix Win8 metro startup crash from window switcher button

We were accessing BrowserViewLayout before it was ready. Switched lookup
of the window switcher button to use BrowserViewLayoutDelegate to query
BrowserView.

BUG=242889,243781
TEST=manual, switch to Win8 metro, also unit_tests BrowserView* and BrowserViewLayout*
R=shrikant@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202155 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/ui/views/frame/browser_view.cc
chrome/browser/ui/views/frame/browser_view_layout.cc
chrome/browser/ui/views/frame/browser_view_layout.h
chrome/browser/ui/views/frame/browser_view_layout_delegate.h
chrome/browser/ui/views/frame/browser_view_layout_unittest.cc