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

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

Issue 9066005: Remove all old-style DeviceManagementService legacy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 years, 11 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
« no previous file with comments | « chrome/browser/policy/mock_device_management_service_old.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/policy/mock_device_management_service_old.h"
6
7 namespace em = enterprise_management;
8
9 namespace policy {
10
11 ProxyDeviceManagementBackend::ProxyDeviceManagementBackend(
12 DeviceManagementBackend* backend)
13 : backend_(backend) {
14 }
15 ProxyDeviceManagementBackend::~ProxyDeviceManagementBackend() {}
16
17 void ProxyDeviceManagementBackend::ProcessRegisterRequest(
18 const std::string& gaia_auth_token,
19 const std::string& oauth_token,
20 const std::string& device_id,
21 const em::DeviceRegisterRequest& request,
22 DeviceRegisterResponseDelegate* delegate) {
23 backend_->ProcessRegisterRequest(gaia_auth_token, oauth_token,
24 device_id, request, delegate);
25 }
26
27 void ProxyDeviceManagementBackend::ProcessUnregisterRequest(
28 const std::string& device_management_token,
29 const std::string& device_id,
30 const em::DeviceUnregisterRequest& request,
31 DeviceUnregisterResponseDelegate* delegate) {
32 backend_->ProcessUnregisterRequest(device_management_token, device_id,
33 request, delegate);
34 }
35
36 void ProxyDeviceManagementBackend::ProcessPolicyRequest(
37 const std::string& device_management_token,
38 const std::string& device_id,
39 CloudPolicyDataStore::UserAffiliation affiliation,
40 const em::DevicePolicyRequest& request,
41 const em::DeviceStatusReportRequest* device_status,
42 DevicePolicyResponseDelegate* delegate) {
43 backend_->ProcessPolicyRequest(device_management_token, device_id,
44 affiliation, request, device_status,
45 delegate);
46 }
47
48 void ProxyDeviceManagementBackend::ProcessAutoEnrollmentRequest(
49 const std::string& device_id,
50 const em::DeviceAutoEnrollmentRequest& request,
51 DeviceAutoEnrollmentResponseDelegate* delegate) {
52 backend_->ProcessAutoEnrollmentRequest(device_id, request, delegate);
53 }
54
55 MockDeviceManagementServiceOld::MockDeviceManagementServiceOld()
56 : DeviceManagementService("") {}
57
58 MockDeviceManagementServiceOld::~MockDeviceManagementServiceOld() {}
59
60 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/mock_device_management_service_old.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698