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

Side by Side Diff: chrome/browser/ui/webui/settings/settings_startup_pages_handler.h

Issue 2781623006: MD Settings: Fix Appearance home page URL crash (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_STARTUP_PAGES_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_STARTUP_PAGES_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_STARTUP_PAGES_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_STARTUP_PAGES_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/custom_home_pages_table_model.h" 9 #include "chrome/browser/custom_home_pages_table_model.h"
10 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" 10 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Informs the code that the JS page has loaded. 49 // Informs the code that the JS page has loaded.
50 void HandleOnStartupPrefsPageLoad(const base::ListValue* args); 50 void HandleOnStartupPrefsPageLoad(const base::ListValue* args);
51 51
52 // Removes the startup page at the given index. 52 // Removes the startup page at the given index.
53 void HandleRemoveStartupPage(const base::ListValue* args); 53 void HandleRemoveStartupPage(const base::ListValue* args);
54 54
55 // Sets the startup page set to the current pages. 55 // Sets the startup page set to the current pages.
56 void HandleSetStartupPagesToCurrentPages(const base::ListValue* args); 56 void HandleSetStartupPagesToCurrentPages(const base::ListValue* args);
57 57
58 // Handles the "validateStartupPage" message. Passed a URL that might be a
59 // valid startup page.
60 void HandleValidateStartupPage(const base::ListValue* args);
61
62 // Stores the current state of the startup page preferences. 58 // Stores the current state of the startup page preferences.
63 void SaveStartupPagesPref(); 59 void SaveStartupPagesPref();
64 60
65 // Informs the that the preferences have changed. It is a callback 61 // Informs the that the preferences have changed. It is a callback
66 // for the pref changed registrar. 62 // for the pref changed registrar.
67 void UpdateStartupPages(); 63 void UpdateStartupPages();
68 64
69 // Used to observe updates to the preference of the list of URLs to load 65 // Used to observe updates to the preference of the list of URLs to load
70 // on startup, which can be updated via sync. 66 // on startup, which can be updated via sync.
71 PrefChangeRegistrar pref_change_registrar_; 67 PrefChangeRegistrar pref_change_registrar_;
72 68
73 // The set of pages to launch on startup. 69 // The set of pages to launch on startup.
74 CustomHomePagesTableModel startup_custom_pages_table_model_; 70 CustomHomePagesTableModel startup_custom_pages_table_model_;
75 71
76 DISALLOW_COPY_AND_ASSIGN(StartupPagesHandler); 72 DISALLOW_COPY_AND_ASSIGN(StartupPagesHandler);
77 }; 73 };
78 74
79 } // namespace settings 75 } // namespace settings
80 76
81 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_STARTUP_PAGES_HANDLER_H_ 77 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_STARTUP_PAGES_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698