| Index: chrome/browser/views/frame/browser_view.cc
|
| ===================================================================
|
| --- chrome/browser/views/frame/browser_view.cc (revision 20020)
|
| +++ chrome/browser/views/frame/browser_view.cc (working copy)
|
| @@ -602,9 +602,6 @@
|
| for (; bubble != browser_bubbles_.end(); ++bubble) {
|
| (*bubble)->BrowserWindowClosed();
|
| }
|
| -
|
| - g_browser_process->local_state()->SetInteger(
|
| - prefs::kDevToolsSplitLocation, contents_split_->divider_offset());
|
| }
|
|
|
| void BrowserView::Activate() {
|
| @@ -1436,6 +1433,7 @@
|
|
|
| contents_container_ = new TabContentsContainer;
|
| devtools_container_ = new TabContentsContainer;
|
| + devtools_container_->SetVisible(false);
|
| contents_split_ = new views::SingleSplitView(
|
| contents_container_,
|
| devtools_container_,
|
| @@ -1607,6 +1605,11 @@
|
| TabContents* devtools_contents =
|
| DevToolsWindow::GetDevToolsContents(tab_contents);
|
| devtools_container_->ChangeTabContents(devtools_contents);
|
| + if (!devtools_contents && devtools_container_->IsVisible()) {
|
| + // Store split offset when hiding devtools window only.
|
| + g_browser_process->local_state()->SetInteger(
|
| + prefs::kDevToolsSplitLocation, contents_split_->divider_offset());
|
| + }
|
| devtools_container_->SetVisible(devtools_contents != NULL);
|
| contents_split_->Layout();
|
| }
|
|
|