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

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

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 DeviceCloudPolicyManagerChromeOS::DeviceCloudPolicyManagerChromeOS( 115 DeviceCloudPolicyManagerChromeOS::DeviceCloudPolicyManagerChromeOS(
116 std::unique_ptr<DeviceCloudPolicyStoreChromeOS> store, 116 std::unique_ptr<DeviceCloudPolicyStoreChromeOS> store,
117 const scoped_refptr<base::SequencedTaskRunner>& task_runner, 117 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
118 ServerBackedStateKeysBroker* state_keys_broker) 118 ServerBackedStateKeysBroker* state_keys_broker)
119 : CloudPolicyManager( 119 : CloudPolicyManager(
120 dm_protocol::kChromeDevicePolicyType, 120 dm_protocol::kChromeDevicePolicyType,
121 std::string(), 121 std::string(),
122 store.get(), 122 store.get(),
123 task_runner, 123 task_runner,
124 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), 124 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE),
125 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)), 125 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)),
126 device_store_(std::move(store)), 126 device_store_(std::move(store)),
127 state_keys_broker_(state_keys_broker), 127 state_keys_broker_(state_keys_broker),
128 task_runner_(task_runner), 128 task_runner_(task_runner),
129 local_state_(nullptr) {} 129 local_state_(nullptr) {}
130 130
131 DeviceCloudPolicyManagerChromeOS::~DeviceCloudPolicyManagerChromeOS() {} 131 DeviceCloudPolicyManagerChromeOS::~DeviceCloudPolicyManagerChromeOS() {}
132 132
133 void DeviceCloudPolicyManagerChromeOS::Initialize(PrefService* local_state) { 133 void DeviceCloudPolicyManagerChromeOS::Initialize(PrefService* local_state) {
134 CHECK(local_state); 134 CHECK(local_state);
135 135
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 base::WrapUnique(new DeviceStatusCollector( 370 base::WrapUnique(new DeviceStatusCollector(
371 local_state_, chromeos::system::StatisticsProvider::GetInstance(), 371 local_state_, chromeos::system::StatisticsProvider::GetInstance(),
372 DeviceStatusCollector::LocationUpdateRequester(), 372 DeviceStatusCollector::LocationUpdateRequester(),
373 DeviceStatusCollector::VolumeInfoFetcher(), 373 DeviceStatusCollector::VolumeInfoFetcher(),
374 DeviceStatusCollector::CPUStatisticsFetcher(), 374 DeviceStatusCollector::CPUStatisticsFetcher(),
375 DeviceStatusCollector::CPUTempFetcher())), 375 DeviceStatusCollector::CPUTempFetcher())),
376 task_runner_)); 376 task_runner_));
377 } 377 }
378 378
379 } // namespace policy 379 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698