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/core_options_handler.h" | 5 #include "chrome/browser/dom_ui/options/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/google/google_util.h" | 12 #include "chrome/browser/google/google_util.h" |
13 #include "chrome/browser/metrics/user_metrics.h" | 13 #include "chrome/browser/metrics/user_metrics.h" |
14 #include "chrome/browser/prefs/pref_service.h" | 14 #include "chrome/browser/prefs/pref_service.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/common/notification_service.h" | 16 #include "chrome/common/notification_details.h" |
17 #include "chrome/common/notification_type.h" | 17 #include "chrome/common/notification_type.h" |
18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
20 #include "grit/browser_resources.h" | 20 #include "grit/browser_resources.h" |
21 #include "grit/chromium_strings.h" | 21 #include "grit/chromium_strings.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
23 #include "grit/locale_settings.h" | 23 #include "grit/locale_settings.h" |
24 #include "grit/theme_resources.h" | 24 #include "grit/theme_resources.h" |
25 | 25 |
26 CoreOptionsHandler::CoreOptionsHandler() {} | 26 CoreOptionsHandler::CoreOptionsHandler() {} |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 | 360 |
361 DictionaryValue* dict = new DictionaryValue; | 361 DictionaryValue* dict = new DictionaryValue; |
362 dict->Set("value", pref->GetValue()->DeepCopy()); | 362 dict->Set("value", pref->GetValue()->DeepCopy()); |
363 dict->SetBoolean("managed", pref->IsManaged()); | 363 dict->SetBoolean("managed", pref->IsManaged()); |
364 result_value.Append(dict); | 364 result_value.Append(dict); |
365 | 365 |
366 dom_ui_->CallJavascriptFunction(callback_function, result_value); | 366 dom_ui_->CallJavascriptFunction(callback_function, result_value); |
367 } | 367 } |
368 } | 368 } |
369 } | 369 } |
370 | |
OLD | NEW |