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

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: 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/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 edef235247492e010339b68cdb7671385b1a1074..419aac1bff81824b9ee0d0519cf422eb095d45fd 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 value (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);
@@ -107,6 +111,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