| Index: chrome/browser/ui/cocoa/window_restore_utils.mm
|
| diff --git a/chrome/browser/ui/cocoa/window_restore_utils.mm b/chrome/browser/ui/cocoa/window_restore_utils.mm
|
| index 22a3209764ae171aa2e8854651d2fa8db6bb6a66..133fa29db1377b68d58dc34df7cb7282e263285f 100644
|
| --- a/chrome/browser/ui/cocoa/window_restore_utils.mm
|
| +++ b/chrome/browser/ui/cocoa/window_restore_utils.mm
|
| @@ -18,7 +18,15 @@ bool IsWindowRestoreEnabled() {
|
| // The defaults must be synchronized here otherwise a stale value will be
|
| // returned for an indeterminate amount of time.
|
| [defaults synchronize];
|
| - return !![defaults boolForKey:@"NSQuitAlwaysKeepsWindows"];
|
| +
|
| + // By default, the preference is not set. When it's not, the intrinsic Lion
|
| + // default (YES) should be returned.
|
| + NSDictionary* prefs = [defaults dictionaryRepresentation];
|
| + NSNumber* value = [prefs objectForKey:@"NSQuitAlwaysKeepsWindows"];
|
| + if (!value)
|
| + return true;
|
| +
|
| + return !![value boolValue];
|
| }
|
|
|
| } // namespace restore_utils
|
|
|