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

Side by Side Diff: chrome/browser/policy/mock_device_management_service.cc

Issue 8702009: Add device status reports to policy requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove some now-dead code. Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/mock_device_management_service.h" 5 #include "chrome/browser/policy/mock_device_management_service.h"
6 6
7 namespace policy { 7 namespace policy {
8 8
9 ProxyDeviceManagementBackend::ProxyDeviceManagementBackend( 9 ProxyDeviceManagementBackend::ProxyDeviceManagementBackend(
10 DeviceManagementBackend* backend) 10 DeviceManagementBackend* backend)
(...skipping 18 matching lines...) Expand all
29 DeviceUnregisterResponseDelegate* delegate) { 29 DeviceUnregisterResponseDelegate* delegate) {
30 backend_->ProcessUnregisterRequest(device_management_token, device_id, 30 backend_->ProcessUnregisterRequest(device_management_token, device_id,
31 request, delegate); 31 request, delegate);
32 } 32 }
33 33
34 void ProxyDeviceManagementBackend::ProcessPolicyRequest( 34 void ProxyDeviceManagementBackend::ProcessPolicyRequest(
35 const std::string& device_management_token, 35 const std::string& device_management_token,
36 const std::string& device_id, 36 const std::string& device_id,
37 CloudPolicyDataStore::UserAffiliation affiliation, 37 CloudPolicyDataStore::UserAffiliation affiliation,
38 const em::DevicePolicyRequest& request, 38 const em::DevicePolicyRequest& request,
39 const em::DeviceStatusReportRequest* device_status,
39 DevicePolicyResponseDelegate* delegate) { 40 DevicePolicyResponseDelegate* delegate) {
40 backend_->ProcessPolicyRequest(device_management_token, device_id, 41 backend_->ProcessPolicyRequest(device_management_token, device_id,
41 affiliation, request, delegate); 42 affiliation, request, device_status,
43 delegate);
42 } 44 }
43 45
44 void ProxyDeviceManagementBackend::ProcessAutoEnrollmentRequest( 46 void ProxyDeviceManagementBackend::ProcessAutoEnrollmentRequest(
45 const std::string& device_id, 47 const std::string& device_id,
46 const em::DeviceAutoEnrollmentRequest& request, 48 const em::DeviceAutoEnrollmentRequest& request,
47 DeviceAutoEnrollmentResponseDelegate* delegate) { 49 DeviceAutoEnrollmentResponseDelegate* delegate) {
48 backend_->ProcessAutoEnrollmentRequest(device_id, request, delegate); 50 backend_->ProcessAutoEnrollmentRequest(device_id, request, delegate);
49 } 51 }
50 52
51 MockDeviceManagementService::MockDeviceManagementService() 53 MockDeviceManagementService::MockDeviceManagementService()
52 : DeviceManagementService("") {} 54 : DeviceManagementService("") {}
53 55
54 MockDeviceManagementService::~MockDeviceManagementService() {} 56 MockDeviceManagementService::~MockDeviceManagementService() {}
55 57
56 } // namespace policy 58 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/mock_device_management_service.h ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698