OLD | NEW |
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_ui.h" | 5 #include "chrome/browser/dom_ui/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 18 matching lines...) Expand all Loading... |
29 #include "chrome/browser/dom_ui/dom_ui_theme_source.h" | 29 #include "chrome/browser/dom_ui/dom_ui_theme_source.h" |
30 #include "chrome/browser/dom_ui/font_settings_handler.h" | 30 #include "chrome/browser/dom_ui/font_settings_handler.h" |
31 #include "chrome/browser/dom_ui/import_data_handler.h" | 31 #include "chrome/browser/dom_ui/import_data_handler.h" |
32 #include "chrome/browser/dom_ui/passwords_exceptions_handler.h" | 32 #include "chrome/browser/dom_ui/passwords_exceptions_handler.h" |
33 #include "chrome/browser/dom_ui/passwords_remove_all_handler.h" | 33 #include "chrome/browser/dom_ui/passwords_remove_all_handler.h" |
34 #include "chrome/browser/dom_ui/personal_options_handler.h" | 34 #include "chrome/browser/dom_ui/personal_options_handler.h" |
35 #include "chrome/browser/dom_ui/search_engine_manager_handler.h" | 35 #include "chrome/browser/dom_ui/search_engine_manager_handler.h" |
36 #include "chrome/browser/dom_ui/stop_syncing_handler.h" | 36 #include "chrome/browser/dom_ui/stop_syncing_handler.h" |
37 #include "chrome/browser/dom_ui/sync_options_handler.h" | 37 #include "chrome/browser/dom_ui/sync_options_handler.h" |
38 #include "chrome/browser/metrics/user_metrics.h" | 38 #include "chrome/browser/metrics/user_metrics.h" |
39 #include "chrome/browser/pref_service.h" | 39 #include "chrome/browser/prefs/pref_service.h" |
40 #include "chrome/browser/profile.h" | 40 #include "chrome/browser/profile.h" |
41 #include "chrome/browser/tab_contents/tab_contents.h" | 41 #include "chrome/browser/tab_contents/tab_contents.h" |
42 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 42 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
43 #include "chrome/common/jstemplate_builder.h" | 43 #include "chrome/common/jstemplate_builder.h" |
44 #include "chrome/common/notification_service.h" | 44 #include "chrome/common/notification_service.h" |
45 #include "chrome/common/notification_type.h" | 45 #include "chrome/common/notification_type.h" |
46 #include "chrome/common/time_format.h" | 46 #include "chrome/common/time_format.h" |
47 #include "chrome/common/url_constants.h" | 47 #include "chrome/common/url_constants.h" |
48 #include "net/base/escape.h" | 48 #include "net/base/escape.h" |
49 | 49 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 (static_cast<OptionsPageUIHandler*>(*iter))->Initialize(); | 209 (static_cast<OptionsPageUIHandler*>(*iter))->Initialize(); |
210 } | 210 } |
211 } | 211 } |
212 | 212 |
213 void OptionsUI::AddOptionsPageUIHandler(DictionaryValue* localized_strings, | 213 void OptionsUI::AddOptionsPageUIHandler(DictionaryValue* localized_strings, |
214 OptionsPageUIHandler* handler) { | 214 OptionsPageUIHandler* handler) { |
215 DCHECK(handler); | 215 DCHECK(handler); |
216 handler->GetLocalizedValues(localized_strings); | 216 handler->GetLocalizedValues(localized_strings); |
217 AddMessageHandler(handler->Attach(this)); | 217 AddMessageHandler(handler->Attach(this)); |
218 } | 218 } |
OLD | NEW |