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 "base/string16.h" | 8 #include "base/string16.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/metrics/user_metrics.h" | 12 #include "chrome/browser/metrics/user_metrics.h" |
13 #include "chrome/browser/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
14 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
15 #include "chrome/common/notification_service.h" | 15 #include "chrome/common/notification_service.h" |
16 #include "chrome/common/notification_type.h" | 16 #include "chrome/common/notification_type.h" |
17 #include "grit/browser_resources.h" | 17 #include "grit/browser_resources.h" |
18 #include "grit/chromium_strings.h" | 18 #include "grit/chromium_strings.h" |
19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
20 #include "grit/locale_settings.h" | 20 #include "grit/locale_settings.h" |
21 #include "grit/theme_resources.h" | 21 #include "grit/theme_resources.h" |
22 | 22 |
23 CoreOptionsHandler::CoreOptionsHandler() { | 23 CoreOptionsHandler::CoreOptionsHandler() { |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 DictionaryValue* dict = new DictionaryValue; | 313 DictionaryValue* dict = new DictionaryValue; |
314 dict->Set("value", pref->GetValue()->DeepCopy()); | 314 dict->Set("value", pref->GetValue()->DeepCopy()); |
315 dict->SetBoolean("managed", pref->IsManaged()); | 315 dict->SetBoolean("managed", pref->IsManaged()); |
316 result_value.Append(dict); | 316 result_value.Append(dict); |
317 | 317 |
318 dom_ui_->CallJavascriptFunction(callback_function, result_value); | 318 dom_ui_->CallJavascriptFunction(callback_function, result_value); |
319 } | 319 } |
320 } | 320 } |
321 } | 321 } |
322 | 322 |
OLD | NEW |