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

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

Issue 108563005: Move the cloud policy protobufs into the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/chromeos/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/callback.h" 8 #include "base/callback.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
11 #include "chromeos/dbus/power_policy_controller.h" 10 #include "chromeos/dbus/power_policy_controller.h"
12 #include "chromeos/dbus/session_manager_client.h" 11 #include "chromeos/dbus/session_manager_client.h"
13 #include "components/policy/core/common/cloud/device_management_service.h" 12 #include "components/policy/core/common/cloud/device_management_service.h"
14 #include "components/policy/core/common/external_data_fetcher.h" 13 #include "components/policy/core/common/external_data_fetcher.h"
15 #include "components/policy/core/common/policy_types.h" 14 #include "components/policy/core/common/policy_types.h"
16 #include "policy/policy_constants.h" 15 #include "policy/policy_constants.h"
17 #include "policy/proto/cloud_policy.pb.h" 16 #include "policy/proto/cloud_policy.pb.h"
17 #include "policy/proto/device_management_backend.pb.h"
18 18
19 namespace em = enterprise_management; 19 namespace em = enterprise_management;
20 20
21 namespace policy { 21 namespace policy {
22 22
23 DeviceLocalAccountPolicyStore::DeviceLocalAccountPolicyStore( 23 DeviceLocalAccountPolicyStore::DeviceLocalAccountPolicyStore(
24 const std::string& account_id, 24 const std::string& account_id,
25 chromeos::SessionManagerClient* session_manager_client, 25 chromeos::SessionManagerClient* session_manager_client,
26 chromeos::DeviceSettingsService* device_settings_service, 26 chromeos::DeviceSettingsService* device_settings_service,
27 scoped_refptr<base::SequencedTaskRunner> background_task_runner) 27 scoped_refptr<base::SequencedTaskRunner> background_task_runner)
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 valid_timestamp_required 188 valid_timestamp_required
189 ? CloudPolicyValidatorBase::TIMESTAMP_REQUIRED 189 ? CloudPolicyValidatorBase::TIMESTAMP_REQUIRED
190 : CloudPolicyValidatorBase::TIMESTAMP_NOT_REQUIRED, 190 : CloudPolicyValidatorBase::TIMESTAMP_NOT_REQUIRED,
191 CloudPolicyValidatorBase::DM_TOKEN_REQUIRED); 191 CloudPolicyValidatorBase::DM_TOKEN_REQUIRED);
192 validator->ValidatePayload(); 192 validator->ValidatePayload();
193 validator->ValidateSignature(*key->public_key(), false); 193 validator->ValidateSignature(*key->public_key(), false);
194 validator.release()->StartValidation(callback); 194 validator.release()->StartValidation(callback);
195 } 195 }
196 196
197 } // namespace policy 197 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698