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

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

Issue 742513006: Add ManagementMode enum and GetManagementMode(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing POLICY_EXPORT Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/fake_device_cloud_policy_initializer.h" 5 #include "chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
(...skipping 20 matching lines...) Expand all
31 EnrollmentStatus::STATUS_SUCCESS)) { 31 EnrollmentStatus::STATUS_SUCCESS)) {
32 } 32 }
33 33
34 void FakeDeviceCloudPolicyInitializer::Init() { 34 void FakeDeviceCloudPolicyInitializer::Init() {
35 } 35 }
36 36
37 void FakeDeviceCloudPolicyInitializer::Shutdown() { 37 void FakeDeviceCloudPolicyInitializer::Shutdown() {
38 } 38 }
39 39
40 void FakeDeviceCloudPolicyInitializer::StartEnrollment( 40 void FakeDeviceCloudPolicyInitializer::StartEnrollment(
41 enterprise_management::PolicyData::ManagementMode management_mode, 41 ManagementMode management_mode,
42 DeviceManagementService* device_management_service, 42 DeviceManagementService* device_management_service,
43 const std::string& auth_token, 43 const std::string& auth_token,
44 bool is_auto_enrollment, 44 bool is_auto_enrollment,
45 const AllowedDeviceModes& allowed_modes, 45 const AllowedDeviceModes& allowed_modes,
46 const EnrollmentCallback& enrollment_callback) { 46 const EnrollmentCallback& enrollment_callback) {
47 was_start_enrollment_called_ = true; 47 was_start_enrollment_called_ = true;
48 enrollment_callback.Run(enrollment_status_); 48 enrollment_callback.Run(enrollment_status_);
49 } 49 }
50 50
51 } // namespace policy 51 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698