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

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

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/device_local_account_external_data_mana ger.h" 5 #include "chrome/browser/chromeos/policy/device_local_account_external_data_mana ger.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/sequenced_task_runner.h" 8 #include "base/sequenced_task_runner.h"
9 #include "chrome/browser/chromeos/policy/cloud_external_data_store.h" 9 #include "chrome/browser/chromeos/policy/cloud_external_data_store.h"
10 #include "chrome/browser/chromeos/policy/device_local_account_external_data_serv ice.h" 10 #include "chrome/browser/chromeos/policy/device_local_account_external_data_serv ice.h"
11 #include "chrome/browser/policy/cloud/resource_cache.h" 11 #include "components/policy/core/common/cloud/resource_cache.h"
12 #include "policy/policy_constants.h" 12 #include "policy/policy_constants.h"
13 13
14 namespace policy { 14 namespace policy {
15 15
16 DeviceLocalAccountExternalDataManager::DeviceLocalAccountExternalDataManager( 16 DeviceLocalAccountExternalDataManager::DeviceLocalAccountExternalDataManager(
17 const std::string& account_id, 17 const std::string& account_id,
18 const GetChromePolicyDetailsCallback& get_policy_details, 18 const GetChromePolicyDetailsCallback& get_policy_details,
19 scoped_refptr<base::SequencedTaskRunner> backend_task_runner, 19 scoped_refptr<base::SequencedTaskRunner> backend_task_runner,
20 scoped_refptr<base::SequencedTaskRunner> io_task_runner, 20 scoped_refptr<base::SequencedTaskRunner> io_task_runner,
21 ResourceCache* resource_cache) 21 ResourceCache* resource_cache)
(...skipping 10 matching lines...) Expand all
32 } 32 }
33 33
34 void DeviceLocalAccountExternalDataManager::OnPolicyStoreLoaded() { 34 void DeviceLocalAccountExternalDataManager::OnPolicyStoreLoaded() {
35 CloudExternalDataManagerBase::OnPolicyStoreLoaded(); 35 CloudExternalDataManagerBase::OnPolicyStoreLoaded();
36 // Proactively try to download and cache all external data referenced by 36 // Proactively try to download and cache all external data referenced by
37 // policies. 37 // policies.
38 FetchAll(); 38 FetchAll();
39 } 39 }
40 40
41 } // namespace policy 41 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698