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

Unified Diff: chrome/browser/ui/webui/settings/settings_startup_pages_handler.h

Issue 1877633002: MD Settings: Adding C++ support for editing startup URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@on_startup_urls
Patch Set: Add missing call to save prefs. Created 4 years, 8 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/settings/settings_startup_pages_handler.h
diff --git a/chrome/browser/ui/webui/settings/settings_startup_pages_handler.h b/chrome/browser/ui/webui/settings/settings_startup_pages_handler.h
index 01367ea7bd2977b46da80e0d03808ebdd7dbb9fd..9e625f7e77162fe43bf6a4eb558a5d7af178a42b 100644
--- a/chrome/browser/ui/webui/settings/settings_startup_pages_handler.h
+++ b/chrome/browser/ui/webui/settings/settings_startup_pages_handler.h
@@ -40,16 +40,18 @@ class StartupPagesHandler : public SettingsPageUIHandler,
private:
// Adds a startup page with the given URL after the given index.
- // Called from WebUI.
void HandleAddStartupPage(const base::ListValue* args);
- // Informs the code that the JS page has loaded. Called from WebUI.
+ // Changes the startup page at the given index to the given URL.
+ void HandleEditStartupPage(const base::ListValue* args);
+
+ // Informs the code that the JS page has loaded.
void HandleOnStartupPrefsPageLoad(const base::ListValue* args);
- // Removes the startup page at the given index. Called from WebUI.
+ // Removes the startup page at the given index.
void HandleRemoveStartupPage(const base::ListValue* args);
- // Sets the startup page set to the current pages. Called from WebUI.
+ // Sets the startup page set to the current pages.
void HandleSetStartupPagesToCurrentPages(const base::ListValue* args);
// Handles the "validateStartupPage" message. Passed a URL that might be a

Powered by Google App Engine
This is Rietveld 408576698