OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/extensions/api/settings_private/prefs_util.h" | 5 #include "chrome/browser/extensions/api/settings_private/prefs_util.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | |
8 #include "build/build_config.h" | 7 #include "build/build_config.h" |
9 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/extensions/chrome_extension_function.h" | 9 #include "chrome/browser/extensions/chrome_extension_function.h" |
11 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
| 12 #include "components/prefs/pref_service.h" |
13 #include "components/proxy_config/proxy_config_pref_names.h" | 13 #include "components/proxy_config/proxy_config_pref_names.h" |
14 #include "components/url_formatter/url_fixer.h" | 14 #include "components/url_formatter/url_fixer.h" |
15 #include "extensions/browser/extension_pref_value_map.h" | 15 #include "extensions/browser/extension_pref_value_map.h" |
16 #include "extensions/browser/extension_pref_value_map_factory.h" | 16 #include "extensions/browser/extension_pref_value_map_factory.h" |
17 #include "extensions/browser/extension_registry.h" | 17 #include "extensions/browser/extension_registry.h" |
18 #include "extensions/common/extension.h" | 18 #include "extensions/common/extension.h" |
19 | 19 |
20 #if defined(OS_CHROMEOS) | 20 #if defined(OS_CHROMEOS) |
21 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" | 21 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" |
22 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" | 22 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 | 564 |
565 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { | 565 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { |
566 #if defined(OS_CHROMEOS) | 566 #if defined(OS_CHROMEOS) |
567 return CrosSettings::Get()->IsCrosSettings(pref_name); | 567 return CrosSettings::Get()->IsCrosSettings(pref_name); |
568 #else | 568 #else |
569 return false; | 569 return false; |
570 #endif | 570 #endif |
571 } | 571 } |
572 | 572 |
573 } // namespace extensions | 573 } // namespace extensions |
OLD | NEW |