| Index: chrome/browser/ui/views/frame/browser_view.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/frame/browser_view.cc (revision 73335)
|
| +++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
|
| @@ -2113,8 +2113,8 @@
|
| }
|
|
|
| // Restore split offset.
|
| - int split_offset = g_browser_process->local_state()->GetInteger(
|
| - prefs::kDevToolsSplitLocation);
|
| + int split_offset = browser_->profile()->GetPrefs()->
|
| + GetInteger(prefs::kDevToolsSplitLocation);
|
| if (split_offset == -1) {
|
| // Initial load, set to default value.
|
| split_offset = 2 * contents_split_->height() / 3;
|
| @@ -2130,8 +2130,8 @@
|
| Layout();
|
| } else if (should_hide) {
|
| // Store split offset when hiding devtools window only.
|
| - g_browser_process->local_state()->SetInteger(
|
| - prefs::kDevToolsSplitLocation, contents_split_->divider_offset());
|
| + browser_->profile()->GetPrefs()->SetInteger(prefs::kDevToolsSplitLocation,
|
| + contents_split_->divider_offset());
|
|
|
| // Restore focus to the last focused view when hiding devtools window.
|
| devtools_focus_tracker_->FocusLastFocusedExternalView();
|
|
|