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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram_macros.h" |
11 #include "base/task_runner_util.h" | 11 #include "base/task_runner_util.h" |
12 #include "google_apis/gaia/gaia_auth_util.h" | 12 #include "google_apis/gaia/gaia_auth_util.h" |
13 #include "policy/proto/cloud_policy.pb.h" | 13 #include "policy/proto/cloud_policy.pb.h" |
14 #include "policy/proto/device_management_backend.pb.h" | 14 #include "policy/proto/device_management_backend.pb.h" |
15 #include "policy/proto/policy_signing_key.pb.h" | 15 #include "policy/proto/policy_signing_key.pb.h" |
16 | 16 |
17 namespace em = enterprise_management; | 17 namespace em = enterprise_management; |
18 | 18 |
19 namespace policy { | 19 namespace policy { |
20 | 20 |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass()); | 452 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass()); |
453 | 453 |
454 // If the key was rotated, update our local cache of the key. | 454 // If the key was rotated, update our local cache of the key. |
455 if (validator->policy()->has_new_public_key()) | 455 if (validator->policy()->has_new_public_key()) |
456 policy_key_ = validator->policy()->new_public_key(); | 456 policy_key_ = validator->policy()->new_public_key(); |
457 status_ = STATUS_OK; | 457 status_ = STATUS_OK; |
458 NotifyStoreLoaded(); | 458 NotifyStoreLoaded(); |
459 } | 459 } |
460 | 460 |
461 } // namespace policy | 461 } // namespace policy |
OLD | NEW |