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/l10n_util.h" | |
10 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
11 #include "base/callback.h" | 10 #include "base/callback.h" |
12 #include "base/i18n/time_formatting.h" | 11 #include "base/i18n/time_formatting.h" |
13 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
14 #include "base/singleton.h" | 13 #include "base/singleton.h" |
15 #include "base/string_piece.h" | 14 #include "base/string_piece.h" |
16 #include "base/string_util.h" | 15 #include "base/string_util.h" |
17 #include "base/thread.h" | 16 #include "base/thread.h" |
18 #include "base/time.h" | 17 #include "base/time.h" |
19 #include "base/values.h" | 18 #include "base/values.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 (static_cast<OptionsPageUIHandler*>(*iter))->Initialize(); | 186 (static_cast<OptionsPageUIHandler*>(*iter))->Initialize(); |
188 } | 187 } |
189 } | 188 } |
190 | 189 |
191 void OptionsUI::AddOptionsPageUIHandler(DictionaryValue* localized_strings, | 190 void OptionsUI::AddOptionsPageUIHandler(DictionaryValue* localized_strings, |
192 OptionsPageUIHandler* handler) { | 191 OptionsPageUIHandler* handler) { |
193 DCHECK(handler); | 192 DCHECK(handler); |
194 handler->GetLocalizedValues(localized_strings); | 193 handler->GetLocalizedValues(localized_strings); |
195 AddMessageHandler(handler->Attach(this)); | 194 AddMessageHandler(handler->Attach(this)); |
196 } | 195 } |
OLD | NEW |