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/core_options_handler.h" | 5 #include "chrome/browser/dom_ui/core_options_handler.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | |
9 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
10 #include "base/values.h" | 9 #include "base/values.h" |
11 #include "chrome/common/notification_service.h" | 10 #include "chrome/common/notification_service.h" |
12 #include "chrome/common/notification_type.h" | 11 #include "chrome/common/notification_type.h" |
13 #include "chrome/browser/pref_service.h" | 12 #include "chrome/browser/pref_service.h" |
14 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
15 #include "grit/browser_resources.h" | 14 #include "grit/browser_resources.h" |
16 #include "grit/chromium_strings.h" | 15 #include "grit/chromium_strings.h" |
17 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
18 #include "grit/locale_settings.h" | 17 #include "grit/locale_settings.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 pref_callback_map_.find(*pref_name); | 277 pref_callback_map_.find(*pref_name); |
279 iter != pref_callback_map_.end(); ++iter) { | 278 iter != pref_callback_map_.end(); ++iter) { |
280 const std::wstring& callback_function = iter->second; | 279 const std::wstring& callback_function = iter->second; |
281 ListValue result_value; | 280 ListValue result_value; |
282 result_value.Append(Value::CreateStringValue(pref_name->c_str())); | 281 result_value.Append(Value::CreateStringValue(pref_name->c_str())); |
283 result_value.Append(pref->GetValue()->DeepCopy()); | 282 result_value.Append(pref->GetValue()->DeepCopy()); |
284 dom_ui_->CallJavascriptFunction(callback_function, result_value); | 283 dom_ui_->CallJavascriptFunction(callback_function, result_value); |
285 } | 284 } |
286 } | 285 } |
287 } | 286 } |
OLD | NEW |