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

Side by Side Diff: chrome/browser/policy/cloud/user_cloud_policy_store_base.cc

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, add chrome/browser/chromeos/policy/OWNERS Created 7 years, 9 months 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/user_cloud_policy_store_base.h" 5 #include "chrome/browser/policy/cloud/user_cloud_policy_store_base.h"
6 6
7 #include "chrome/browser/policy/cloud_policy_constants.h" 7 #include "chrome/browser/policy/cloud/cloud_policy_constants.h"
8 #include "chrome/browser/policy/proto/cloud_policy.pb.h" 8 #include "chrome/browser/policy/proto/cloud_policy.pb.h"
9 9
10 namespace policy { 10 namespace policy {
11 11
12 // Decodes a CloudPolicySettings object into a policy map. The implementation is 12 // Decodes a CloudPolicySettings object into a policy map. The implementation is
13 // generated code in policy/cloud_policy_generated.cc. 13 // generated code in policy/cloud_policy_generated.cc.
14 void DecodePolicy(const enterprise_management::CloudPolicySettings& policy, 14 void DecodePolicy(const enterprise_management::CloudPolicySettings& policy,
15 PolicyMap* policies); 15 PolicyMap* policies);
16 16
17 UserCloudPolicyStoreBase::UserCloudPolicyStoreBase() { 17 UserCloudPolicyStoreBase::UserCloudPolicyStoreBase() {
(...skipping 19 matching lines...) Expand all
37 void UserCloudPolicyStoreBase::InstallPolicy( 37 void UserCloudPolicyStoreBase::InstallPolicy(
38 scoped_ptr<enterprise_management::PolicyData> policy_data, 38 scoped_ptr<enterprise_management::PolicyData> policy_data,
39 scoped_ptr<enterprise_management::CloudPolicySettings> payload) { 39 scoped_ptr<enterprise_management::CloudPolicySettings> payload) {
40 // Decode the payload. 40 // Decode the payload.
41 policy_map_.Clear(); 41 policy_map_.Clear();
42 DecodePolicy(*payload, &policy_map_); 42 DecodePolicy(*payload, &policy_map_);
43 policy_ = policy_data.Pass(); 43 policy_ = policy_data.Pass();
44 } 44 }
45 45
46 } // namespace policy 46 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698