Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_store.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/policy/core/common/cloud/cloud_policy_store.h ('k') | components/policy/core/common/cloud/cloud_policy_validator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698