Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8264)

Unified Diff: chrome/browser/ui/cocoa/window_restore_utils.h

Issue 7522025: Turn on session restore by default for mac on Lion (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: JS nits and comment correction Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/window_restore_utils.h
diff --git a/chrome/browser/ui/cocoa/window_restore_utils.h b/chrome/browser/ui/cocoa/window_restore_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..dbb903cb4bc1a7cc3930b57ac058e6f58183ac3f
--- /dev/null
+++ b/chrome/browser/ui/cocoa/window_restore_utils.h
@@ -0,0 +1,16 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_WINDOW_RESTORE_UTILS_H_
+#define CHROME_BROWSER_UI_COCOA_WINDOW_RESTORE_UTILS_H_
+
+namespace restore_utils {
+
+// On Lion or later, returns |true| if the System Preference
+// "Restore windows..." option is checked. Other OSes will return |false|.
+bool IsWindowRestoreEnabled();
+
+} // namespace restore_utils
+
+#endif // CHROME_BROWSER_UI_COCOA_WINDOW_RESTORE_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698