OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/extensions/device_local_account_external_polic
y_loader.h" | 5 #include "chrome/browser/chromeos/extensions/device_local_account_external_polic
y_loader.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/prefs/pref_value_map.h" | 9 #include "base/prefs/pref_value_map.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/extensions/policy_handlers.h" | 12 #include "chrome/browser/extensions/policy_handlers.h" |
13 #include "chrome/browser/policy/policy_map.h" | |
14 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "components/policy/core/common/policy_map.h" |
15 #include "net/url_request/url_request_context_getter.h" | 15 #include "net/url_request/url_request_context_getter.h" |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 DeviceLocalAccountExternalPolicyLoader:: | 19 DeviceLocalAccountExternalPolicyLoader:: |
20 DeviceLocalAccountExternalPolicyLoader(policy::CloudPolicyStore* store, | 20 DeviceLocalAccountExternalPolicyLoader(policy::CloudPolicyStore* store, |
21 const base::FilePath& cache_dir) | 21 const base::FilePath& cache_dir) |
22 : store_(store), | 22 : store_(store), |
23 cache_dir_(cache_dir) { | 23 cache_dir_(cache_dir) { |
24 } | 24 } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 if (pref_value_map.GetValue(prefs::kExtensionInstallForceList, &value) && | 97 if (pref_value_map.GetValue(prefs::kExtensionInstallForceList, &value) && |
98 value->GetAsDictionary(&dict)) { | 98 value->GetAsDictionary(&dict)) { |
99 prefs.reset(dict->DeepCopy()); | 99 prefs.reset(dict->DeepCopy()); |
100 } | 100 } |
101 } | 101 } |
102 | 102 |
103 external_cache_->UpdateExtensionsList(prefs.Pass()); | 103 external_cache_->UpdateExtensionsList(prefs.Pass()); |
104 } | 104 } |
105 | 105 |
106 } // namespace chromeos | 106 } // namespace chromeos |
OLD | NEW |