| Index: chrome/browser/ui/views/frame/browser_view.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/frame/browser_view.cc (revision 162437)
|
| +++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
|
| @@ -2536,10 +2536,13 @@
|
| search_view_controller_->SetTabContents(new_contents);
|
| #endif
|
|
|
| + // Layout for DevTools _before_ setting the main WebContents to avoid
|
| + // toggling the size of the main WebContents.
|
| + UpdateDevToolsForContents(new_contents);
|
| +
|
| if (change_tab_contents)
|
| contents_container_->SetWebContents(new_contents->web_contents());
|
|
|
| - UpdateDevToolsForContents(new_contents);
|
| if (!browser_->tab_strip_model()->closing_all() && GetWidget()->IsActive() &&
|
| GetWidget()->IsVisible()) {
|
| // We only restore focus if our window is visible, to avoid invoking blur
|
|
|