| Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| index f4bc80a871cda38e9f04533a02623e23758bc340..1ebec4cabfe7b88ea0e7788e476714f56dccfa36 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| +++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| @@ -126,10 +126,11 @@ const CGFloat kLocBarBottomInset = 1;
|
| gfx::Rect workArea(NSRectToCGRect([windowScreen visibleFrame]));
|
| workArea.set_y(monitorFrame.size.height - workArea.y() - workArea.height());
|
|
|
| - DictionaryPrefUpdate update(
|
| - prefs,
|
| - chrome::GetWindowPlacementKey(browser_.get()).c_str());
|
| - base::DictionaryValue* windowPreferences = update.Get();
|
| + scoped_ptr<DictionaryPrefUpdate> update =
|
| + chrome::GetWindowPlacementDictionaryReadWrite(
|
| + chrome::GetWindowName(browser_.get()),
|
| + browser_->profile()->GetPrefs());
|
| + base::DictionaryValue* windowPreferences = update->Get();
|
| windowPreferences->SetInteger("left", bounds.x());
|
| windowPreferences->SetInteger("top", bounds.y());
|
| windowPreferences->SetInteger("right", bounds.right());
|
|
|