| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |