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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_validator.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_validator.h" 5 #include "components/policy/core/common/cloud/cloud_policy_validator.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/sequenced_task_runner.h" 9 #include "base/sequenced_task_runner.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "chrome/browser/policy/cloud/cloud_policy_constants.h"
12 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" 11 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
12 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
13 #include "crypto/signature_verifier.h" 13 #include "crypto/signature_verifier.h"
14 #include "google_apis/gaia/gaia_auth_util.h" 14 #include "google_apis/gaia/gaia_auth_util.h"
15 15
16 namespace em = enterprise_management; 16 namespace em = enterprise_management;
17 17
18 namespace policy { 18 namespace policy {
19 19
20 namespace { 20 namespace {
21 21
22 // Grace interval for policy timestamp checks, in seconds. 22 // Grace interval for policy timestamp checks, in seconds.
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 } 373 }
374 verifier.VerifyUpdate(reinterpret_cast<const uint8*>(data.c_str()), 374 verifier.VerifyUpdate(reinterpret_cast<const uint8*>(data.c_str()),
375 data.size()); 375 data.size());
376 return verifier.VerifyFinal(); 376 return verifier.VerifyFinal();
377 } 377 }
378 378
379 template class CloudPolicyValidator<em::CloudPolicySettings>; 379 template class CloudPolicyValidator<em::CloudPolicySettings>;
380 template class CloudPolicyValidator<em::ExternalPolicyData>; 380 template class CloudPolicyValidator<em::ExternalPolicyData>;
381 381
382 } // namespace policy 382 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698