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

Side by Side Diff: chrome/browser/chromeos/policy/device_local_account_policy_store.cc

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 10 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/device_local_account_policy_store.h" 5 #include "chrome/browser/chromeos/policy/device_local_account_policy_store.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/policy/device_management_service.h" 9 #include "chrome/browser/policy/cloud/device_management_service.h"
10 #include "chrome/browser/policy/policy_types.h" 10 #include "chrome/browser/policy/policy_types.h"
11 #include "chrome/browser/policy/proto/cloud_policy.pb.h" 11 #include "chrome/browser/policy/proto/cloud_policy.pb.h"
12 #include "chrome/browser/policy/proto/device_management_backend.pb.h" 12 #include "chrome/browser/policy/proto/device_management_backend.pb.h"
13 #include "chromeos/dbus/session_manager_client.h" 13 #include "chromeos/dbus/session_manager_client.h"
14 #include "policy/policy_constants.h" 14 #include "policy/policy_constants.h"
15 15
16 namespace em = enterprise_management; 16 namespace em = enterprise_management;
17 17
18 namespace policy { 18 namespace policy {
19 19
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 UserCloudPolicyValidator::Create(policy_response.Pass())); 160 UserCloudPolicyValidator::Create(policy_response.Pass()));
161 validator->ValidateUsername(account_id_); 161 validator->ValidateUsername(account_id_);
162 validator->ValidatePolicyType(dm_protocol::kChromePublicAccountPolicyType); 162 validator->ValidatePolicyType(dm_protocol::kChromePublicAccountPolicyType);
163 validator->ValidateAgainstCurrentPolicy(policy(), false); 163 validator->ValidateAgainstCurrentPolicy(policy(), false);
164 validator->ValidatePayload(); 164 validator->ValidatePayload();
165 validator->ValidateSignature(*key->public_key(), false); 165 validator->ValidateSignature(*key->public_key(), false);
166 validator.release()->StartValidation(callback); 166 validator.release()->StartValidation(callback);
167 } 167 }
168 168
169 } // namespace policy 169 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698