OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/options/core_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/core_options_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/browser/extensions/extension_service.h" | 22 #include "chrome/browser/extensions/extension_service.h" |
23 #include "chrome/browser/extensions/extension_util.h" | 23 #include "chrome/browser/extensions/extension_util.h" |
24 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
26 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
27 #include "chrome/common/url_constants.h" | 27 #include "chrome/common/url_constants.h" |
28 #include "chrome/grit/chromium_strings.h" | 28 #include "chrome/grit/chromium_strings.h" |
29 #include "chrome/grit/generated_resources.h" | 29 #include "chrome/grit/generated_resources.h" |
30 #include "chrome/grit/locale_settings.h" | 30 #include "chrome/grit/locale_settings.h" |
31 #include "components/proxy_config/proxy_config_pref_names.h" | 31 #include "components/proxy_config/proxy_config_pref_names.h" |
| 32 #include "components/strings/grit/components_strings.h" |
32 #include "components/url_formatter/url_fixer.h" | 33 #include "components/url_formatter/url_fixer.h" |
33 #include "content/public/browser/notification_details.h" | 34 #include "content/public/browser/notification_details.h" |
34 #include "content/public/browser/notification_types.h" | 35 #include "content/public/browser/notification_types.h" |
35 #include "content/public/browser/user_metrics.h" | 36 #include "content/public/browser/user_metrics.h" |
36 #include "content/public/browser/web_ui.h" | 37 #include "content/public/browser/web_ui.h" |
37 #include "extensions/browser/extension_pref_value_map.h" | 38 #include "extensions/browser/extension_pref_value_map.h" |
38 #include "extensions/browser/extension_pref_value_map_factory.h" | 39 #include "extensions/browser/extension_pref_value_map_factory.h" |
39 #include "extensions/browser/extension_registry.h" | 40 #include "extensions/browser/extension_registry.h" |
40 #include "extensions/browser/extension_system.h" | 41 #include "extensions/browser/extension_system.h" |
41 #include "extensions/common/extension.h" | 42 #include "extensions/common/extension.h" |
42 #include "grit/components_strings.h" | |
43 #include "ui/base/l10n/l10n_util.h" | 43 #include "ui/base/l10n/l10n_util.h" |
44 #include "url/gurl.h" | 44 #include "url/gurl.h" |
45 | 45 |
46 using base::UserMetricsAction; | 46 using base::UserMetricsAction; |
47 | 47 |
48 namespace options { | 48 namespace options { |
49 | 49 |
50 namespace { | 50 namespace { |
51 | 51 |
52 // Whether "controlledBy" property of pref value sent to options web UI needs to | 52 // Whether "controlledBy" property of pref value sent to options web UI needs to |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 plugin_status_pref_setter_.IsPepperFlashSettingsEnabled()); | 657 plugin_status_pref_setter_.IsPepperFlashSettingsEnabled()); |
658 web_ui()->CallJavascriptFunctionUnsafe( | 658 web_ui()->CallJavascriptFunctionUnsafe( |
659 "options.OptionsPage.setPepperFlashSettingsEnabled", enabled); | 659 "options.OptionsPage.setPepperFlashSettingsEnabled", enabled); |
660 } | 660 } |
661 | 661 |
662 bool CoreOptionsHandler::IsUserUnsupervised(const base::Value* to_value) { | 662 bool CoreOptionsHandler::IsUserUnsupervised(const base::Value* to_value) { |
663 return !Profile::FromWebUI(web_ui())->IsSupervised(); | 663 return !Profile::FromWebUI(web_ui())->IsSupervised(); |
664 } | 664 } |
665 | 665 |
666 } // namespace options | 666 } // namespace options |
OLD | NEW |