OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/browser/dom_ui/options/add_startup_page_handler.h" | 24 #include "chrome/browser/dom_ui/options/add_startup_page_handler.h" |
25 #include "chrome/browser/dom_ui/options/advanced_options_handler.h" | 25 #include "chrome/browser/dom_ui/options/advanced_options_handler.h" |
26 #include "chrome/browser/dom_ui/options/autofill_options_handler.h" | 26 #include "chrome/browser/dom_ui/options/autofill_options_handler.h" |
27 #include "chrome/browser/dom_ui/options/browser_options_handler.h" | 27 #include "chrome/browser/dom_ui/options/browser_options_handler.h" |
28 #include "chrome/browser/dom_ui/options/clear_browser_data_handler.h" | 28 #include "chrome/browser/dom_ui/options/clear_browser_data_handler.h" |
29 #include "chrome/browser/dom_ui/options/content_settings_handler.h" | 29 #include "chrome/browser/dom_ui/options/content_settings_handler.h" |
30 #include "chrome/browser/dom_ui/options/cookies_view_handler.h" | 30 #include "chrome/browser/dom_ui/options/cookies_view_handler.h" |
31 #include "chrome/browser/dom_ui/options/core_options_handler.h" | 31 #include "chrome/browser/dom_ui/options/core_options_handler.h" |
32 #include "chrome/browser/dom_ui/options/font_settings_handler.h" | 32 #include "chrome/browser/dom_ui/options/font_settings_handler.h" |
33 #include "chrome/browser/dom_ui/options/import_data_handler.h" | 33 #include "chrome/browser/dom_ui/options/import_data_handler.h" |
| 34 #include "chrome/browser/dom_ui/options/language_options_handler.h" |
34 #include "chrome/browser/dom_ui/options/password_manager_handler.h" | 35 #include "chrome/browser/dom_ui/options/password_manager_handler.h" |
35 #include "chrome/browser/dom_ui/options/personal_options_handler.h" | 36 #include "chrome/browser/dom_ui/options/personal_options_handler.h" |
36 #include "chrome/browser/dom_ui/options/search_engine_manager_handler.h" | 37 #include "chrome/browser/dom_ui/options/search_engine_manager_handler.h" |
37 #include "chrome/browser/dom_ui/options/startup_page_manager_handler.h" | 38 #include "chrome/browser/dom_ui/options/startup_page_manager_handler.h" |
38 #include "chrome/browser/dom_ui/options/stop_syncing_handler.h" | 39 #include "chrome/browser/dom_ui/options/stop_syncing_handler.h" |
39 #include "chrome/browser/metrics/user_metrics.h" | 40 #include "chrome/browser/metrics/user_metrics.h" |
40 #include "chrome/browser/renderer_host/render_view_host.h" | 41 #include "chrome/browser/renderer_host/render_view_host.h" |
41 #include "chrome/browser/profiles/profile.h" | 42 #include "chrome/browser/profiles/profile.h" |
42 #include "chrome/browser/tab_contents/tab_contents.h" | 43 #include "chrome/browser/tab_contents/tab_contents.h" |
43 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 44 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
(...skipping 10 matching lines...) Expand all Loading... |
54 | 55 |
55 #if defined(OS_CHROMEOS) | 56 #if defined(OS_CHROMEOS) |
56 #include "chrome/browser/chromeos/dom_ui/accounts_options_handler.h" | 57 #include "chrome/browser/chromeos/dom_ui/accounts_options_handler.h" |
57 #include "chrome/browser/chromeos/dom_ui/core_chromeos_options_handler.h" | 58 #include "chrome/browser/chromeos/dom_ui/core_chromeos_options_handler.h" |
58 #include "chrome/browser/chromeos/dom_ui/cros_personal_options_handler.h" | 59 #include "chrome/browser/chromeos/dom_ui/cros_personal_options_handler.h" |
59 #include "chrome/browser/chromeos/dom_ui/internet_options_handler.h" | 60 #include "chrome/browser/chromeos/dom_ui/internet_options_handler.h" |
60 #include "chrome/browser/chromeos/dom_ui/language_chewing_options_handler.h" | 61 #include "chrome/browser/chromeos/dom_ui/language_chewing_options_handler.h" |
61 #include "chrome/browser/chromeos/dom_ui/language_customize_modifier_keys_handle
r.h" | 62 #include "chrome/browser/chromeos/dom_ui/language_customize_modifier_keys_handle
r.h" |
62 #include "chrome/browser/chromeos/dom_ui/language_hangul_options_handler.h" | 63 #include "chrome/browser/chromeos/dom_ui/language_hangul_options_handler.h" |
63 #include "chrome/browser/chromeos/dom_ui/language_mozc_options_handler.h" | 64 #include "chrome/browser/chromeos/dom_ui/language_mozc_options_handler.h" |
64 #include "chrome/browser/chromeos/dom_ui/language_options_handler.h" | |
65 #include "chrome/browser/chromeos/dom_ui/language_pinyin_options_handler.h" | 65 #include "chrome/browser/chromeos/dom_ui/language_pinyin_options_handler.h" |
66 #include "chrome/browser/chromeos/dom_ui/proxy_handler.h" | 66 #include "chrome/browser/chromeos/dom_ui/proxy_handler.h" |
67 #include "chrome/browser/chromeos/dom_ui/stats_options_handler.h" | 67 #include "chrome/browser/chromeos/dom_ui/stats_options_handler.h" |
68 #include "chrome/browser/chromeos/dom_ui/system_options_handler.h" | 68 #include "chrome/browser/chromeos/dom_ui/system_options_handler.h" |
69 #endif | 69 #endif |
70 | 70 |
71 #if defined(USE_NSS) | 71 #if defined(USE_NSS) |
72 #include "chrome/browser/dom_ui/options/certificate_manager_handler.h" | 72 #include "chrome/browser/dom_ui/options/certificate_manager_handler.h" |
73 #endif | 73 #endif |
74 | 74 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 OptionsPageUIHandler* handler_raw) { | 269 OptionsPageUIHandler* handler_raw) { |
270 scoped_ptr<OptionsPageUIHandler> handler(handler_raw); | 270 scoped_ptr<OptionsPageUIHandler> handler(handler_raw); |
271 DCHECK(handler.get()); | 271 DCHECK(handler.get()); |
272 // Add only if handler's service is enabled. | 272 // Add only if handler's service is enabled. |
273 if (handler->IsEnabled()) { | 273 if (handler->IsEnabled()) { |
274 handler->GetLocalizedValues(localized_strings); | 274 handler->GetLocalizedValues(localized_strings); |
275 // Add handler to the list and also pass the ownership. | 275 // Add handler to the list and also pass the ownership. |
276 AddMessageHandler(handler.release()->Attach(this)); | 276 AddMessageHandler(handler.release()->Attach(this)); |
277 } | 277 } |
278 } | 278 } |
OLD | NEW |