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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.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: 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/webui/options/browser_options_handler.h
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.h b/chrome/browser/ui/webui/options/browser_options_handler.h
index e400130e71d1cfbb83e6ae672187031afda975ad..8c40f3b32ad931b3077fd8be81909669ade580b5 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.h
+++ b/chrome/browser/ui/webui/options/browser_options_handler.h
@@ -65,6 +65,10 @@ class BrowserOptionsHandler : public OptionsPageUIHandler,
// Sets the search engine at the given index to be default. Called from WebUI.
void SetDefaultSearchEngine(const ListValue* args);
+ // Sets the session restore setting to the integer values (enum) at index 0 of
+ // |args|. Called from WebUI.
+ void SetRestoreOnStartup(const ListValue* args);
+
// Removes the startup page at the given indexes. Called from WebUI.
void RemoveStartupPages(const ListValue* args);
@@ -104,6 +108,9 @@ class BrowserOptionsHandler : public OptionsPageUIHandler,
// Updates the UI with the given state for the default browser.
void SetDefaultBrowserUIString(int status_string_id);
+ // Updates the UI with the given state for the window restore setting.
+ void UpdateRestoreOnStartup();
+
// Loads the current set of custom startup pages and reports it to the WebUI.
void UpdateStartupPages();

Powered by Google App Engine
This is Rietveld 408576698