| 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/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "chrome/browser/ui/webui/options/home_page_overlay_handler.h" | 38 #include "chrome/browser/ui/webui/options/home_page_overlay_handler.h" |
| 39 #include "chrome/browser/ui/webui/options/import_data_handler.h" | 39 #include "chrome/browser/ui/webui/options/import_data_handler.h" |
| 40 #include "chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h" | 40 #include "chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h" |
| 41 #include "chrome/browser/ui/webui/options/language_options_handler.h" | 41 #include "chrome/browser/ui/webui/options/language_options_handler.h" |
| 42 #include "chrome/browser/ui/webui/options/manage_profile_handler.h" | 42 #include "chrome/browser/ui/webui/options/manage_profile_handler.h" |
| 43 #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h" | 43 #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h" |
| 44 #include "chrome/browser/ui/webui/options/password_manager_handler.h" | 44 #include "chrome/browser/ui/webui/options/password_manager_handler.h" |
| 45 #include "chrome/browser/ui/webui/options/reset_profile_settings_handler.h" | 45 #include "chrome/browser/ui/webui/options/reset_profile_settings_handler.h" |
| 46 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" | 46 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" |
| 47 #include "chrome/browser/ui/webui/options/startup_pages_handler.h" | 47 #include "chrome/browser/ui/webui/options/startup_pages_handler.h" |
| 48 #include "chrome/browser/ui/webui/options/supervised_user_create_confirm_handler
.h" | |
| 49 #include "chrome/browser/ui/webui/options/supervised_user_import_handler.h" | |
| 50 #include "chrome/browser/ui/webui/options/supervised_user_learn_more_handler.h" | |
| 51 #include "chrome/browser/ui/webui/options/sync_setup_handler.h" | 48 #include "chrome/browser/ui/webui/options/sync_setup_handler.h" |
| 52 #include "chrome/browser/ui/webui/options/website_settings_handler.h" | 49 #include "chrome/browser/ui/webui/options/website_settings_handler.h" |
| 53 #include "chrome/browser/ui/webui/theme_source.h" | 50 #include "chrome/browser/ui/webui/theme_source.h" |
| 54 #include "chrome/common/url_constants.h" | 51 #include "chrome/common/url_constants.h" |
| 55 #include "chrome/grit/generated_resources.h" | 52 #include "chrome/grit/generated_resources.h" |
| 56 #include "chrome/grit/locale_settings.h" | 53 #include "chrome/grit/locale_settings.h" |
| 57 #include "components/omnibox/autocomplete_match.h" | 54 #include "components/omnibox/autocomplete_match.h" |
| 58 #include "components/omnibox/autocomplete_result.h" | 55 #include "components/omnibox/autocomplete_result.h" |
| 59 #include "content/public/browser/notification_types.h" | 56 #include "content/public/browser/notification_types.h" |
| 60 #include "content/public/browser/render_frame_host.h" | 57 #include "content/public/browser/render_frame_host.h" |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); | 301 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); |
| 305 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler()); | 302 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler()); |
| 306 AddOptionsPageUIHandler(localized_strings, new StartupPagesHandler()); | 303 AddOptionsPageUIHandler(localized_strings, new StartupPagesHandler()); |
| 307 #if defined(ENABLE_SUPERVISED_USERS) | 304 #if defined(ENABLE_SUPERVISED_USERS) |
| 308 AddOptionsPageUIHandler(localized_strings, | 305 AddOptionsPageUIHandler(localized_strings, |
| 309 new SupervisedUserCreateConfirmHandler()); | 306 new SupervisedUserCreateConfirmHandler()); |
| 310 AddOptionsPageUIHandler(localized_strings, new SupervisedUserImportHandler()); | 307 AddOptionsPageUIHandler(localized_strings, new SupervisedUserImportHandler()); |
| 311 AddOptionsPageUIHandler(localized_strings, | 308 AddOptionsPageUIHandler(localized_strings, |
| 312 new SupervisedUserLearnMoreHandler()); | 309 new SupervisedUserLearnMoreHandler()); |
| 313 #endif | 310 #endif |
| 314 AddOptionsPageUIHandler(localized_strings, new SyncSetupHandler( | 311 AddOptionsPageUIHandler(localized_strings, new SyncSetupHandler()); |
| 315 g_browser_process->profile_manager())); | |
| 316 AddOptionsPageUIHandler(localized_strings, new WebsiteSettingsHandler()); | 312 AddOptionsPageUIHandler(localized_strings, new WebsiteSettingsHandler()); |
| 317 #if defined(OS_CHROMEOS) | 313 #if defined(OS_CHROMEOS) |
| 318 AddOptionsPageUIHandler(localized_strings, | 314 AddOptionsPageUIHandler(localized_strings, |
| 319 new chromeos::options::AccountsOptionsHandler()); | 315 new chromeos::options::AccountsOptionsHandler()); |
| 320 AddOptionsPageUIHandler(localized_strings, | 316 AddOptionsPageUIHandler(localized_strings, |
| 321 new chromeos::options::BluetoothOptionsHandler()); | 317 new chromeos::options::BluetoothOptionsHandler()); |
| 322 AddOptionsPageUIHandler(localized_strings, | 318 AddOptionsPageUIHandler(localized_strings, |
| 323 new chromeos::options::DateTimeOptionsHandler()); | 319 new chromeos::options::DateTimeOptionsHandler()); |
| 324 AddOptionsPageUIHandler(localized_strings, | 320 AddOptionsPageUIHandler(localized_strings, |
| 325 new chromeos::options::DisplayOptionsHandler()); | 321 new chromeos::options::DisplayOptionsHandler()); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 // Add only if handler's service is enabled. | 478 // Add only if handler's service is enabled. |
| 483 if (handler->IsEnabled()) { | 479 if (handler->IsEnabled()) { |
| 484 // Add handler to the list and also pass the ownership. | 480 // Add handler to the list and also pass the ownership. |
| 485 web_ui()->AddMessageHandler(handler.release()); | 481 web_ui()->AddMessageHandler(handler.release()); |
| 486 handler_raw->GetLocalizedValues(localized_strings); | 482 handler_raw->GetLocalizedValues(localized_strings); |
| 487 handlers_.push_back(handler_raw); | 483 handlers_.push_back(handler_raw); |
| 488 } | 484 } |
| 489 } | 485 } |
| 490 | 486 |
| 491 } // namespace options | 487 } // namespace options |
| OLD | NEW |