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

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

Issue 2257103002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 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 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/device_cloud_policy_manager_chromeos.h" 5 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 } 381 }
382 382
383 void DeviceCloudPolicyManagerChromeOS::NotifyDisconnected() { 383 void DeviceCloudPolicyManagerChromeOS::NotifyDisconnected() {
384 FOR_EACH_OBSERVER( 384 FOR_EACH_OBSERVER(
385 Observer, observers_, OnDeviceCloudPolicyManagerDisconnected()); 385 Observer, observers_, OnDeviceCloudPolicyManagerDisconnected());
386 } 386 }
387 387
388 void DeviceCloudPolicyManagerChromeOS::CreateStatusUploader() { 388 void DeviceCloudPolicyManagerChromeOS::CreateStatusUploader() {
389 status_uploader_.reset(new StatusUploader( 389 status_uploader_.reset(new StatusUploader(
390 client(), 390 client(),
391 base::WrapUnique(new DeviceStatusCollector( 391 base::MakeUnique<DeviceStatusCollector>(
392 local_state_, chromeos::system::StatisticsProvider::GetInstance(), 392 local_state_, chromeos::system::StatisticsProvider::GetInstance(),
393 DeviceStatusCollector::LocationUpdateRequester(), 393 DeviceStatusCollector::LocationUpdateRequester(),
394 DeviceStatusCollector::VolumeInfoFetcher(), 394 DeviceStatusCollector::VolumeInfoFetcher(),
395 DeviceStatusCollector::CPUStatisticsFetcher(), 395 DeviceStatusCollector::CPUStatisticsFetcher(),
396 DeviceStatusCollector::CPUTempFetcher())), 396 DeviceStatusCollector::CPUTempFetcher()),
397 task_runner_)); 397 task_runner_));
398 } 398 }
399 399
400 } // namespace policy 400 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698