| Index: chrome/browser/ui/views/frame/browser_view.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/frame/browser_view.cc (revision 137335)
|
| +++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
|
| @@ -297,6 +297,7 @@
|
| active_bookmark_bar_(NULL),
|
| tabstrip_(NULL),
|
| toolbar_(NULL),
|
| + window_switcher_button_(NULL),
|
| infobar_container_(NULL),
|
| contents_container_(NULL),
|
| devtools_container_(NULL),
|
| @@ -798,6 +799,13 @@
|
| selected_web_contents->GetView()->RestoreFocus();
|
| }
|
|
|
| +void BrowserView::SetWindowSwitcherButton(views::Button* button) {
|
| + if (window_switcher_button_)
|
| + RemoveChildView(window_switcher_button_);
|
| + window_switcher_button_ = button;
|
| + AddChildView(button);
|
| +}
|
| +
|
| LocationBar* BrowserView::GetLocationBar() const {
|
| return GetLocationBarView();
|
| }
|
|
|