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

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

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
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_manager.h" 5 #include "chrome/browser/chromeos/policy/fake_device_cloud_policy_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h" 10 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h"
11 11
12 namespace policy { 12 namespace policy {
13 13
14 FakeDeviceCloudPolicyManager::FakeDeviceCloudPolicyManager( 14 FakeDeviceCloudPolicyManager::FakeDeviceCloudPolicyManager(
15 scoped_ptr<DeviceCloudPolicyStoreChromeOS> store, 15 std::unique_ptr<DeviceCloudPolicyStoreChromeOS> store,
16 const scoped_refptr<base::SequencedTaskRunner>& task_runner) 16 const scoped_refptr<base::SequencedTaskRunner>& task_runner)
17 : DeviceCloudPolicyManagerChromeOS(std::move(store), task_runner, NULL), 17 : DeviceCloudPolicyManagerChromeOS(std::move(store), task_runner, NULL),
18 unregister_result_(true) {} 18 unregister_result_(true) {}
19 19
20 FakeDeviceCloudPolicyManager::~FakeDeviceCloudPolicyManager() { 20 FakeDeviceCloudPolicyManager::~FakeDeviceCloudPolicyManager() {
21 Shutdown(); 21 Shutdown();
22 } 22 }
23 23
24 void FakeDeviceCloudPolicyManager::Unregister( 24 void FakeDeviceCloudPolicyManager::Unregister(
25 const UnregisterCallback& callback) { 25 const UnregisterCallback& callback) {
26 callback.Run(unregister_result_); 26 callback.Run(unregister_result_);
27 } 27 }
28 28
29 void FakeDeviceCloudPolicyManager::Disconnect() { 29 void FakeDeviceCloudPolicyManager::Disconnect() {
30 } 30 }
31 31
32 } // namespace policy 32 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698