OLD | NEW |
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_policy_manager_factory_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 std::unique_ptr<UserCloudPolicyStoreChromeOS> store = | 235 std::unique_ptr<UserCloudPolicyStoreChromeOS> store = |
236 base::MakeUnique<UserCloudPolicyStoreChromeOS>( | 236 base::MakeUnique<UserCloudPolicyStoreChromeOS>( |
237 chromeos::DBusThreadManager::Get()->GetCryptohomeClient(), | 237 chromeos::DBusThreadManager::Get()->GetCryptohomeClient(), |
238 chromeos::DBusThreadManager::Get()->GetSessionManagerClient(), | 238 chromeos::DBusThreadManager::Get()->GetSessionManagerClient(), |
239 background_task_runner, account_id, policy_key_dir, | 239 background_task_runner, account_id, policy_key_dir, |
240 is_active_directory); | 240 is_active_directory); |
241 | 241 |
242 scoped_refptr<base::SequencedTaskRunner> backend_task_runner = | 242 scoped_refptr<base::SequencedTaskRunner> backend_task_runner = |
243 base::CreateSequencedTaskRunnerWithTraits( | 243 base::CreateSequencedTaskRunnerWithTraits( |
244 base::TaskTraits() | 244 {base::MayBlock(), base::TaskPriority::BACKGROUND, |
245 .MayBlock() | 245 base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN}); |
246 .WithPriority(base::TaskPriority::BACKGROUND) | |
247 .WithShutdownBehavior( | |
248 base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN)); | |
249 scoped_refptr<base::SequencedTaskRunner> io_task_runner = | 246 scoped_refptr<base::SequencedTaskRunner> io_task_runner = |
250 content::BrowserThread::GetTaskRunnerForThread( | 247 content::BrowserThread::GetTaskRunnerForThread( |
251 content::BrowserThread::IO); | 248 content::BrowserThread::IO); |
252 std::unique_ptr<CloudExternalDataManager> external_data_manager( | 249 std::unique_ptr<CloudExternalDataManager> external_data_manager( |
253 new UserCloudExternalDataManager(base::Bind(&GetChromePolicyDetails), | 250 new UserCloudExternalDataManager(base::Bind(&GetChromePolicyDetails), |
254 backend_task_runner, io_task_runner, | 251 backend_task_runner, io_task_runner, |
255 external_data_dir, store.get())); | 252 external_data_dir, store.get())); |
256 if (force_immediate_load) | 253 if (force_immediate_load) |
257 store->LoadImmediately(); | 254 store->LoadImmediately(); |
258 | 255 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 323 |
327 bool UserPolicyManagerFactoryChromeOS::HasTestingFactory( | 324 bool UserPolicyManagerFactoryChromeOS::HasTestingFactory( |
328 content::BrowserContext* context) { | 325 content::BrowserContext* context) { |
329 return false; | 326 return false; |
330 } | 327 } |
331 | 328 |
332 void UserPolicyManagerFactoryChromeOS::CreateServiceNow( | 329 void UserPolicyManagerFactoryChromeOS::CreateServiceNow( |
333 content::BrowserContext* context) {} | 330 content::BrowserContext* context) {} |
334 | 331 |
335 } // namespace policy | 332 } // namespace policy |
OLD | NEW |