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/chromeos/policy/device_local_account_policy_store.h" | 5 #include "chrome/browser/chromeos/policy/device_local_account_policy_store.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/sequenced_task_runner.h" |
12 #include "components/ownership/owner_key_util.h" | 13 #include "components/ownership/owner_key_util.h" |
13 #include "components/policy/core/common/cloud/device_management_service.h" | 14 #include "components/policy/core/common/cloud/device_management_service.h" |
14 #include "components/policy/core/common/external_data_fetcher.h" | 15 #include "components/policy/core/common/external_data_fetcher.h" |
15 #include "components/policy/core/common/policy_map.h" | 16 #include "components/policy/core/common/policy_map.h" |
16 #include "components/policy/core/common/policy_types.h" | 17 #include "components/policy/core/common/policy_types.h" |
17 #include "components/policy/proto/cloud_policy.pb.h" | 18 #include "components/policy/proto/cloud_policy.pb.h" |
18 #include "components/policy/proto/device_management_backend.pb.h" | 19 #include "components/policy/proto/device_management_backend.pb.h" |
19 | 20 |
20 using RetrievePolicyResponseType = | 21 using RetrievePolicyResponseType = |
21 chromeos::SessionManagerClient::RetrievePolicyResponseType; | 22 chromeos::SessionManagerClient::RetrievePolicyResponseType; |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 UserCloudPolicyValidator::StartValidation( | 222 UserCloudPolicyValidator::StartValidation( |
222 std::move(validator), base::Bind(callback, key->as_string())); | 223 std::move(validator), base::Bind(callback, key->as_string())); |
223 } else { | 224 } else { |
224 validator->RunValidation(); | 225 validator->RunValidation(); |
225 | 226 |
226 UpdatePolicy(key->as_string(), validator.get()); | 227 UpdatePolicy(key->as_string(), validator.get()); |
227 } | 228 } |
228 } | 229 } |
229 | 230 |
230 } // namespace policy | 231 } // namespace policy |
OLD | NEW |