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