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/common/pref_names.h" | |
14 #include "components/policy/core/common/policy_map.h" | 13 #include "components/policy/core/common/policy_map.h" |
15 #include "extensions/browser/pref_names.h" | 14 #include "extensions/browser/pref_names.h" |
16 #include "net/url_request/url_request_context_getter.h" | 15 #include "net/url_request/url_request_context_getter.h" |
17 | 16 |
18 namespace chromeos { | 17 namespace chromeos { |
19 | 18 |
20 DeviceLocalAccountExternalPolicyLoader:: | 19 DeviceLocalAccountExternalPolicyLoader:: |
21 DeviceLocalAccountExternalPolicyLoader(policy::CloudPolicyStore* store, | 20 DeviceLocalAccountExternalPolicyLoader(policy::CloudPolicyStore* store, |
22 const base::FilePath& cache_dir) | 21 const base::FilePath& cache_dir) |
23 : store_(store), | 22 : store_(store), |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 &value) && | 105 &value) && |
107 value->GetAsDictionary(&dict)) { | 106 value->GetAsDictionary(&dict)) { |
108 prefs.reset(dict->DeepCopy()); | 107 prefs.reset(dict->DeepCopy()); |
109 } | 108 } |
110 } | 109 } |
111 | 110 |
112 external_cache_->UpdateExtensionsList(prefs.Pass()); | 111 external_cache_->UpdateExtensionsList(prefs.Pass()); |
113 } | 112 } |
114 | 113 |
115 } // namespace chromeos | 114 } // namespace chromeos |
OLD | NEW |