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

Unified Diff: chrome/browser/policy/user_cloud_policy_store_base.cc

Issue 10823208: Reverting this as it causes browser tests on the Linux ChromiumOS builder to fail. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/user_cloud_policy_store_base.cc
===================================================================
--- chrome/browser/policy/user_cloud_policy_store_base.cc (revision 150390)
+++ chrome/browser/policy/user_cloud_policy_store_base.cc (working copy)
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/policy/user_cloud_policy_store_base.h"
-
-#include "chrome/browser/policy/cloud_policy_constants.h"
-#include "chrome/browser/policy/proto/cloud_policy.pb.h"
-
-namespace policy {
-
-// Decodes a CloudPolicySettings object into a policy map. The implementation is
-// generated code in policy/cloud_policy_generated.cc.
-void DecodePolicy(const enterprise_management::CloudPolicySettings& policy,
- PolicyMap* policies);
-
-UserCloudPolicyStoreBase::UserCloudPolicyStoreBase() {
-}
-
-UserCloudPolicyStoreBase::~UserCloudPolicyStoreBase() {
-}
-
-scoped_ptr<UserCloudPolicyValidator> UserCloudPolicyStoreBase::CreateValidator(
- scoped_ptr<enterprise_management::PolicyFetchResponse> policy,
- const UserCloudPolicyValidator::CompletionCallback& callback) {
- // Configure the validator.
- UserCloudPolicyValidator* validator =
- UserCloudPolicyValidator::Create(policy.Pass(), callback);
- validator->ValidatePolicyType(dm_protocol::kChromeUserPolicyType);
- validator->ValidateAgainstCurrentPolicy(policy_.get());
- validator->ValidatePayload();
- return scoped_ptr<UserCloudPolicyValidator>(validator);
-}
-
-void UserCloudPolicyStoreBase::InstallPolicy(
- scoped_ptr<enterprise_management::PolicyData> policy_data,
- scoped_ptr<enterprise_management::CloudPolicySettings> payload) {
- // Decode the payload.
- policy_map_.Clear();
- DecodePolicy(*payload, &policy_map_);
- policy_ = policy_data.Pass();
-}
-
-} // namespace policy
« no previous file with comments | « chrome/browser/policy/user_cloud_policy_store_base.h ('k') | chrome/browser/policy/user_cloud_policy_store_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698