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

Unified 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, 12 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
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/mock_device_management_service_old.cc
diff --git a/chrome/browser/policy/mock_device_management_service_old.cc b/chrome/browser/policy/mock_device_management_service_old.cc
deleted file mode 100644
index da85a1ff63d1b77dd4fbc6ee91330914175e55d6..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/mock_device_management_service_old.cc
+++ /dev/null
@@ -1,60 +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/mock_device_management_service_old.h"
-
-namespace em = enterprise_management;
-
-namespace policy {
-
-ProxyDeviceManagementBackend::ProxyDeviceManagementBackend(
- DeviceManagementBackend* backend)
- : backend_(backend) {
-}
-ProxyDeviceManagementBackend::~ProxyDeviceManagementBackend() {}
-
-void ProxyDeviceManagementBackend::ProcessRegisterRequest(
- const std::string& gaia_auth_token,
- const std::string& oauth_token,
- const std::string& device_id,
- const em::DeviceRegisterRequest& request,
- DeviceRegisterResponseDelegate* delegate) {
- backend_->ProcessRegisterRequest(gaia_auth_token, oauth_token,
- device_id, request, delegate);
-}
-
-void ProxyDeviceManagementBackend::ProcessUnregisterRequest(
- const std::string& device_management_token,
- const std::string& device_id,
- const em::DeviceUnregisterRequest& request,
- DeviceUnregisterResponseDelegate* delegate) {
- backend_->ProcessUnregisterRequest(device_management_token, device_id,
- request, delegate);
-}
-
-void ProxyDeviceManagementBackend::ProcessPolicyRequest(
- const std::string& device_management_token,
- const std::string& device_id,
- CloudPolicyDataStore::UserAffiliation affiliation,
- const em::DevicePolicyRequest& request,
- const em::DeviceStatusReportRequest* device_status,
- DevicePolicyResponseDelegate* delegate) {
- backend_->ProcessPolicyRequest(device_management_token, device_id,
- affiliation, request, device_status,
- delegate);
-}
-
-void ProxyDeviceManagementBackend::ProcessAutoEnrollmentRequest(
- const std::string& device_id,
- const em::DeviceAutoEnrollmentRequest& request,
- DeviceAutoEnrollmentResponseDelegate* delegate) {
- backend_->ProcessAutoEnrollmentRequest(device_id, request, delegate);
-}
-
-MockDeviceManagementServiceOld::MockDeviceManagementServiceOld()
- : DeviceManagementService("") {}
-
-MockDeviceManagementServiceOld::~MockDeviceManagementServiceOld() {}
-
-} // namespace policy
« 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