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/policy/cloud/cloud_policy_store.h" | 5 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/policy/cloud/cloud_external_data_manager.h" | 8 #include "components/policy/core/common/cloud/cloud_external_data_manager.h" |
9 | 9 |
10 namespace policy { | 10 namespace policy { |
11 | 11 |
12 CloudPolicyStore::Observer::~Observer() {} | 12 CloudPolicyStore::Observer::~Observer() {} |
13 | 13 |
14 CloudPolicyStore::CloudPolicyStore() | 14 CloudPolicyStore::CloudPolicyStore() |
15 : status_(STATUS_OK), | 15 : status_(STATUS_OK), |
16 validation_status_(CloudPolicyValidatorBase::VALIDATION_OK), | 16 validation_status_(CloudPolicyValidatorBase::VALIDATION_OK), |
17 invalidation_version_(0), | 17 invalidation_version_(0), |
18 is_initialized_(false) {} | 18 is_initialized_(false) {} |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 if (is_initialized_) | 59 if (is_initialized_) |
60 external_data_manager_->OnPolicyStoreLoaded(); | 60 external_data_manager_->OnPolicyStoreLoaded(); |
61 } | 61 } |
62 | 62 |
63 void CloudPolicyStore::SetPolicyMapForTesting(const PolicyMap& policy_map) { | 63 void CloudPolicyStore::SetPolicyMapForTesting(const PolicyMap& policy_map) { |
64 policy_map_.CopyFrom(policy_map); | 64 policy_map_.CopyFrom(policy_map); |
65 NotifyStoreLoaded(); | 65 NotifyStoreLoaded(); |
66 } | 66 } |
67 | 67 |
68 } // namespace policy | 68 } // namespace policy |
OLD | NEW |