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

Side by Side Diff: chrome/browser/dom_ui/options/options_ui.cc

Issue 5594006: DOMUI Prefs: Add a subpage for startup page management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add changes lost during merge to trunk Created 10 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/dom_ui/options/options_ui.h" 5 #include "chrome/browser/dom_ui/options/options_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/dom_ui/options/browser_options_handler.h" 25 #include "chrome/browser/dom_ui/options/browser_options_handler.h"
26 #include "chrome/browser/dom_ui/options/clear_browser_data_handler.h" 26 #include "chrome/browser/dom_ui/options/clear_browser_data_handler.h"
27 #include "chrome/browser/dom_ui/options/content_settings_handler.h" 27 #include "chrome/browser/dom_ui/options/content_settings_handler.h"
28 #include "chrome/browser/dom_ui/options/cookies_view_handler.h" 28 #include "chrome/browser/dom_ui/options/cookies_view_handler.h"
29 #include "chrome/browser/dom_ui/options/core_options_handler.h" 29 #include "chrome/browser/dom_ui/options/core_options_handler.h"
30 #include "chrome/browser/dom_ui/options/font_settings_handler.h" 30 #include "chrome/browser/dom_ui/options/font_settings_handler.h"
31 #include "chrome/browser/dom_ui/options/import_data_handler.h" 31 #include "chrome/browser/dom_ui/options/import_data_handler.h"
32 #include "chrome/browser/dom_ui/options/passwords_exceptions_handler.h" 32 #include "chrome/browser/dom_ui/options/passwords_exceptions_handler.h"
33 #include "chrome/browser/dom_ui/options/personal_options_handler.h" 33 #include "chrome/browser/dom_ui/options/personal_options_handler.h"
34 #include "chrome/browser/dom_ui/options/search_engine_manager_handler.h" 34 #include "chrome/browser/dom_ui/options/search_engine_manager_handler.h"
35 #include "chrome/browser/dom_ui/options/startup_page_manager_handler.h"
35 #include "chrome/browser/dom_ui/options/stop_syncing_handler.h" 36 #include "chrome/browser/dom_ui/options/stop_syncing_handler.h"
36 #include "chrome/browser/dom_ui/options/sync_options_handler.h" 37 #include "chrome/browser/dom_ui/options/sync_options_handler.h"
37 #include "chrome/browser/metrics/user_metrics.h" 38 #include "chrome/browser/metrics/user_metrics.h"
38 #include "chrome/browser/renderer_host/render_view_host.h" 39 #include "chrome/browser/renderer_host/render_view_host.h"
39 #include "chrome/browser/prefs/pref_service.h" 40 #include "chrome/browser/prefs/pref_service.h"
40 #include "chrome/browser/profiles/profile.h" 41 #include "chrome/browser/profiles/profile.h"
41 #include "chrome/browser/tab_contents/tab_contents.h" 42 #include "chrome/browser/tab_contents/tab_contents.h"
42 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 43 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
43 #include "chrome/common/jstemplate_builder.h" 44 #include "chrome/common/jstemplate_builder.h"
44 #include "chrome/common/notification_service.h" 45 #include "chrome/common/notification_service.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 AddOptionsPageUIHandler(localized_strings, new AdvancedOptionsHandler()); 147 AddOptionsPageUIHandler(localized_strings, new AdvancedOptionsHandler());
147 AddOptionsPageUIHandler(localized_strings, new AutoFillOptionsHandler()); 148 AddOptionsPageUIHandler(localized_strings, new AutoFillOptionsHandler());
148 AddOptionsPageUIHandler(localized_strings, new BrowserOptionsHandler()); 149 AddOptionsPageUIHandler(localized_strings, new BrowserOptionsHandler());
149 AddOptionsPageUIHandler(localized_strings, new ClearBrowserDataHandler()); 150 AddOptionsPageUIHandler(localized_strings, new ClearBrowserDataHandler());
150 AddOptionsPageUIHandler(localized_strings, new ContentSettingsHandler()); 151 AddOptionsPageUIHandler(localized_strings, new ContentSettingsHandler());
151 AddOptionsPageUIHandler(localized_strings, new CookiesViewHandler()); 152 AddOptionsPageUIHandler(localized_strings, new CookiesViewHandler());
152 AddOptionsPageUIHandler(localized_strings, new FontSettingsHandler()); 153 AddOptionsPageUIHandler(localized_strings, new FontSettingsHandler());
153 AddOptionsPageUIHandler(localized_strings, new PasswordsExceptionsHandler()); 154 AddOptionsPageUIHandler(localized_strings, new PasswordsExceptionsHandler());
154 AddOptionsPageUIHandler(localized_strings, new PersonalOptionsHandler()); 155 AddOptionsPageUIHandler(localized_strings, new PersonalOptionsHandler());
155 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); 156 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler());
157 AddOptionsPageUIHandler(localized_strings, new StartupPageManagerHandler());
156 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler()); 158 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler());
157 AddOptionsPageUIHandler(localized_strings, new StopSyncingHandler()); 159 AddOptionsPageUIHandler(localized_strings, new StopSyncingHandler());
158 AddOptionsPageUIHandler(localized_strings, new SyncOptionsHandler()); 160 AddOptionsPageUIHandler(localized_strings, new SyncOptionsHandler());
159 #if defined(OS_CHROMEOS) 161 #if defined(OS_CHROMEOS)
160 AddOptionsPageUIHandler(localized_strings, new AboutPageHandler()); 162 AddOptionsPageUIHandler(localized_strings, new AboutPageHandler());
161 AddOptionsPageUIHandler(localized_strings, 163 AddOptionsPageUIHandler(localized_strings,
162 new chromeos::AccountsOptionsHandler()); 164 new chromeos::AccountsOptionsHandler());
163 AddOptionsPageUIHandler(localized_strings, new InternetOptionsHandler()); 165 AddOptionsPageUIHandler(localized_strings, new InternetOptionsHandler());
164 AddOptionsPageUIHandler(localized_strings, 166 AddOptionsPageUIHandler(localized_strings,
165 new chromeos::LanguageChewingOptionsHandler()); 167 new chromeos::LanguageChewingOptionsHandler());
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 OptionsPageUIHandler* handler_raw) { 264 OptionsPageUIHandler* handler_raw) {
263 scoped_ptr<OptionsPageUIHandler> handler(handler_raw); 265 scoped_ptr<OptionsPageUIHandler> handler(handler_raw);
264 DCHECK(handler.get()); 266 DCHECK(handler.get());
265 // Add only if handler's service is enabled. 267 // Add only if handler's service is enabled.
266 if (handler->IsEnabled()) { 268 if (handler->IsEnabled()) {
267 handler->GetLocalizedValues(localized_strings); 269 handler->GetLocalizedValues(localized_strings);
268 // Add handler to the list and also pass the ownership. 270 // Add handler to the list and also pass the ownership.
269 AddMessageHandler(handler.release()->Attach(this)); 271 AddMessageHandler(handler.release()->Attach(this));
270 } 272 }
271 } 273 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/options/browser_options_handler.cc ('k') | chrome/browser/dom_ui/options/startup_page_manager_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698