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

Side by Side Diff: chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/user_cloud_policy_manager_factory_chrom eos.h" 5 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom eos.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 new UserCloudPolicyStoreChromeOS( 193 new UserCloudPolicyStoreChromeOS(
194 chromeos::DBusThreadManager::Get()->GetCryptohomeClient(), 194 chromeos::DBusThreadManager::Get()->GetCryptohomeClient(),
195 chromeos::DBusThreadManager::Get()->GetSessionManagerClient(), 195 chromeos::DBusThreadManager::Get()->GetSessionManagerClient(),
196 background_task_runner, account_id, policy_key_dir, token_cache_file, 196 background_task_runner, account_id, policy_key_dir, token_cache_file,
197 policy_cache_file)); 197 policy_cache_file));
198 198
199 scoped_refptr<base::SequencedTaskRunner> backend_task_runner = 199 scoped_refptr<base::SequencedTaskRunner> backend_task_runner =
200 content::BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( 200 content::BrowserThread::GetBlockingPool()->GetSequencedTaskRunner(
201 content::BrowserThread::GetBlockingPool()->GetSequenceToken()); 201 content::BrowserThread::GetBlockingPool()->GetSequenceToken());
202 scoped_refptr<base::SequencedTaskRunner> io_task_runner = 202 scoped_refptr<base::SequencedTaskRunner> io_task_runner =
203 content::BrowserThread::GetMessageLoopProxyForThread( 203 content::BrowserThread::GetTaskRunnerForThread(
204 content::BrowserThread::IO); 204 content::BrowserThread::IO);
205 std::unique_ptr<CloudExternalDataManager> external_data_manager( 205 std::unique_ptr<CloudExternalDataManager> external_data_manager(
206 new UserCloudExternalDataManager(base::Bind(&GetChromePolicyDetails), 206 new UserCloudExternalDataManager(base::Bind(&GetChromePolicyDetails),
207 backend_task_runner, io_task_runner, 207 backend_task_runner, io_task_runner,
208 external_data_dir, store.get())); 208 external_data_dir, store.get()));
209 if (force_immediate_load) 209 if (force_immediate_load)
210 store->LoadImmediately(); 210 store->LoadImmediately();
211 211
212 scoped_refptr<base::SequencedTaskRunner> file_task_runner = 212 scoped_refptr<base::SequencedTaskRunner> file_task_runner =
213 content::BrowserThread::GetMessageLoopProxyForThread( 213 content::BrowserThread::GetTaskRunnerForThread(
214 content::BrowserThread::FILE); 214 content::BrowserThread::FILE);
215 215
216 std::unique_ptr<UserCloudPolicyManagerChromeOS> manager( 216 std::unique_ptr<UserCloudPolicyManagerChromeOS> manager(
217 new UserCloudPolicyManagerChromeOS( 217 new UserCloudPolicyManagerChromeOS(
218 std::move(store), std::move(external_data_manager), 218 std::move(store), std::move(external_data_manager),
219 component_policy_cache_dir, wait_for_policy_fetch, 219 component_policy_cache_dir, wait_for_policy_fetch,
220 initial_policy_fetch_timeout, base::ThreadTaskRunnerHandle::Get(), 220 initial_policy_fetch_timeout, base::ThreadTaskRunnerHandle::Get(),
221 file_task_runner, io_task_runner)); 221 file_task_runner, io_task_runner));
222 222
223 bool wildcard_match = false; 223 bool wildcard_match = false;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 bool UserCloudPolicyManagerFactoryChromeOS::HasTestingFactory( 262 bool UserCloudPolicyManagerFactoryChromeOS::HasTestingFactory(
263 content::BrowserContext* context) { 263 content::BrowserContext* context) {
264 return false; 264 return false;
265 } 265 }
266 266
267 void UserCloudPolicyManagerFactoryChromeOS::CreateServiceNow( 267 void UserCloudPolicyManagerFactoryChromeOS::CreateServiceNow(
268 content::BrowserContext* context) {} 268 content::BrowserContext* context) {}
269 269
270 } // namespace policy 270 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698