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 "components/policy/core/common/cloud/user_cloud_policy_store.h" | 5 #include "components/policy/core/common/cloud/user_cloud_policy_store.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
| 16 #include "base/sequenced_task_runner.h" |
16 #include "base/task_runner_util.h" | 17 #include "base/task_runner_util.h" |
17 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 18 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
18 #include "components/policy/proto/cloud_policy.pb.h" | 19 #include "components/policy/proto/cloud_policy.pb.h" |
19 #include "components/policy/proto/device_management_backend.pb.h" | 20 #include "components/policy/proto/device_management_backend.pb.h" |
20 #include "components/policy/proto/policy_signing_key.pb.h" | 21 #include "components/policy/proto/policy_signing_key.pb.h" |
21 #include "google_apis/gaia/gaia_auth_util.h" | 22 #include "google_apis/gaia/gaia_auth_util.h" |
22 | 23 |
23 namespace em = enterprise_management; | 24 namespace em = enterprise_management; |
24 | 25 |
25 namespace policy { | 26 namespace policy { |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 if (validator->policy()->has_new_public_key()) | 442 if (validator->policy()->has_new_public_key()) |
442 persisted_policy_key_ = validator->policy()->new_public_key(); | 443 persisted_policy_key_ = validator->policy()->new_public_key(); |
443 | 444 |
444 InstallPolicy(std::move(validator->policy_data()), | 445 InstallPolicy(std::move(validator->policy_data()), |
445 std::move(validator->payload()), persisted_policy_key_); | 446 std::move(validator->payload()), persisted_policy_key_); |
446 status_ = STATUS_OK; | 447 status_ = STATUS_OK; |
447 NotifyStoreLoaded(); | 448 NotifyStoreLoaded(); |
448 } | 449 } |
449 | 450 |
450 } // namespace policy | 451 } // namespace policy |
OLD | NEW |