OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/policy/core/common/policy_loader_ios.h" | 5 #include "components/policy/core/common/policy_loader_ios.h" |
6 | 6 |
7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 #include <stddef.h> |
8 #import <UIKit/UIKit.h> | 9 #import <UIKit/UIKit.h> |
9 | 10 |
10 #include "base/bind.h" | 11 #include "base/bind.h" |
11 #include "base/location.h" | 12 #include "base/location.h" |
12 #include "base/logging.h" | 13 #include "base/logging.h" |
13 #include "base/mac/scoped_nsobject.h" | 14 #include "base/mac/scoped_nsobject.h" |
14 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
15 #include "base/sequenced_task_runner.h" | 16 #include "base/sequenced_task_runner.h" |
16 #include "components/policy/core/common/mac_util.h" | 17 #include "components/policy/core/common/mac_util.h" |
17 #include "components/policy/core/common/policy_bundle.h" | 18 #include "components/policy/core/common/policy_bundle.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 PropertyToValue(static_cast<CFPropertyListRef>(dictionary)); | 177 PropertyToValue(static_cast<CFPropertyListRef>(dictionary)); |
177 base::DictionaryValue* dict = NULL; | 178 base::DictionaryValue* dict = NULL; |
178 if (value && value->GetAsDictionary(&dict)) { | 179 if (value && value->GetAsDictionary(&dict)) { |
179 PolicyMap& map = bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, "")); | 180 PolicyMap& map = bundle->Get(PolicyNamespace(POLICY_DOMAIN_CHROME, "")); |
180 map.LoadFrom(dict, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_MACHINE, | 181 map.LoadFrom(dict, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_MACHINE, |
181 POLICY_SOURCE_PLATFORM); | 182 POLICY_SOURCE_PLATFORM); |
182 } | 183 } |
183 } | 184 } |
184 | 185 |
185 } // namespace policy | 186 } // namespace policy |
OLD | NEW |