OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/options/options_ui.h" | 5 #include "chrome/browser/ui/webui/options/options_ui.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "chrome/browser/ui/webui/options/handler_options_handler.h" | 32 #include "chrome/browser/ui/webui/options/handler_options_handler.h" |
33 #include "chrome/browser/ui/webui/options/home_page_overlay_handler.h" | 33 #include "chrome/browser/ui/webui/options/home_page_overlay_handler.h" |
34 #include "chrome/browser/ui/webui/options/import_data_handler.h" | 34 #include "chrome/browser/ui/webui/options/import_data_handler.h" |
35 #include "chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h" | 35 #include "chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h" |
36 #include "chrome/browser/ui/webui/options/language_options_handler.h" | 36 #include "chrome/browser/ui/webui/options/language_options_handler.h" |
37 #include "chrome/browser/ui/webui/options/manage_profile_handler.h" | 37 #include "chrome/browser/ui/webui/options/manage_profile_handler.h" |
38 #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h" | 38 #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h" |
39 #include "chrome/browser/ui/webui/options/media_galleries_handler.h" | 39 #include "chrome/browser/ui/webui/options/media_galleries_handler.h" |
40 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h" | 40 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h" |
41 #include "chrome/browser/ui/webui/options/password_manager_handler.h" | 41 #include "chrome/browser/ui/webui/options/password_manager_handler.h" |
| 42 #include "chrome/browser/ui/webui/options/reset_profile_settings_handler.h" |
42 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" | 43 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" |
43 #include "chrome/browser/ui/webui/options/startup_pages_handler.h" | 44 #include "chrome/browser/ui/webui/options/startup_pages_handler.h" |
44 #include "chrome/browser/ui/webui/theme_source.h" | 45 #include "chrome/browser/ui/webui/theme_source.h" |
45 #include "chrome/common/time_format.h" | 46 #include "chrome/common/time_format.h" |
46 #include "chrome/common/url_constants.h" | 47 #include "chrome/common/url_constants.h" |
47 #include "content/public/browser/notification_types.h" | 48 #include "content/public/browser/notification_types.h" |
48 #include "content/public/browser/render_view_host.h" | 49 #include "content/public/browser/render_view_host.h" |
49 #include "content/public/browser/url_data_source.h" | 50 #include "content/public/browser/url_data_source.h" |
50 #include "content/public/browser/web_contents.h" | 51 #include "content/public/browser/web_contents.h" |
51 #include "content/public/browser/web_contents_delegate.h" | 52 #include "content/public/browser/web_contents_delegate.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 #if defined(OS_CHROMEOS) | 262 #if defined(OS_CHROMEOS) |
262 AddOptionsPageUIHandler(localized_strings, | 263 AddOptionsPageUIHandler(localized_strings, |
263 new chromeos::options::CrosLanguageOptionsHandler()); | 264 new chromeos::options::CrosLanguageOptionsHandler()); |
264 #else | 265 #else |
265 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler()); | 266 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler()); |
266 #endif | 267 #endif |
267 AddOptionsPageUIHandler(localized_strings, | 268 AddOptionsPageUIHandler(localized_strings, |
268 new LanguageDictionaryOverlayHandler()); | 269 new LanguageDictionaryOverlayHandler()); |
269 AddOptionsPageUIHandler(localized_strings, new ManageProfileHandler()); | 270 AddOptionsPageUIHandler(localized_strings, new ManageProfileHandler()); |
270 AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler()); | 271 AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler()); |
| 272 AddOptionsPageUIHandler(localized_strings, new ResetProfileSettingsHandler()); |
271 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); | 273 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); |
272 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler()); | 274 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler()); |
273 AddOptionsPageUIHandler(localized_strings, new StartupPagesHandler()); | 275 AddOptionsPageUIHandler(localized_strings, new StartupPagesHandler()); |
274 AddOptionsPageUIHandler(localized_strings, new OptionsSyncSetupHandler( | 276 AddOptionsPageUIHandler(localized_strings, new OptionsSyncSetupHandler( |
275 g_browser_process->profile_manager())); | 277 g_browser_process->profile_manager())); |
276 #if defined(OS_CHROMEOS) | 278 #if defined(OS_CHROMEOS) |
277 AddOptionsPageUIHandler(localized_strings, | 279 AddOptionsPageUIHandler(localized_strings, |
278 new chromeos::options::AccountsOptionsHandler()); | 280 new chromeos::options::AccountsOptionsHandler()); |
279 AddOptionsPageUIHandler(localized_strings, | 281 AddOptionsPageUIHandler(localized_strings, |
280 new chromeos::options::BluetoothOptionsHandler()); | 282 new chromeos::options::BluetoothOptionsHandler()); |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 // Add only if handler's service is enabled. | 422 // Add only if handler's service is enabled. |
421 if (handler->IsEnabled()) { | 423 if (handler->IsEnabled()) { |
422 // Add handler to the list and also pass the ownership. | 424 // Add handler to the list and also pass the ownership. |
423 web_ui()->AddMessageHandler(handler.release()); | 425 web_ui()->AddMessageHandler(handler.release()); |
424 handler_raw->GetLocalizedValues(localized_strings); | 426 handler_raw->GetLocalizedValues(localized_strings); |
425 handlers_.push_back(handler_raw); | 427 handlers_.push_back(handler_raw); |
426 } | 428 } |
427 } | 429 } |
428 | 430 |
429 } // namespace options | 431 } // namespace options |
OLD | NEW |