This source file includes following definitions.
- DeviceLocalAccountExternalDataManager
- OnPolicyStoreLoaded
#include "chrome/browser/chromeos/policy/device_local_account_external_data_manager.h"
#include "base/memory/scoped_ptr.h"
#include "base/sequenced_task_runner.h"
#include "chrome/browser/chromeos/policy/cloud_external_data_store.h"
#include "chrome/browser/chromeos/policy/device_local_account_external_data_service.h"
#include "components/policy/core/common/cloud/resource_cache.h"
#include "policy/policy_constants.h"
namespace policy {
DeviceLocalAccountExternalDataManager::DeviceLocalAccountExternalDataManager(
const std::string& account_id,
const GetChromePolicyDetailsCallback& get_policy_details,
scoped_refptr<base::SequencedTaskRunner> backend_task_runner,
scoped_refptr<base::SequencedTaskRunner> io_task_runner,
ResourceCache* resource_cache)
: CloudExternalDataManagerBase(get_policy_details,
backend_task_runner,
io_task_runner) {
SetExternalDataStore(make_scoped_ptr(new CloudExternalDataStore(
account_id, backend_task_runner, resource_cache)));
}
DeviceLocalAccountExternalDataManager::
~DeviceLocalAccountExternalDataManager() {
SetExternalDataStore(scoped_ptr<CloudExternalDataStore>());
}
void DeviceLocalAccountExternalDataManager::OnPolicyStoreLoaded() {
CloudExternalDataManagerBase::OnPolicyStoreLoaded();
FetchAll();
}
}