| 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/user_cloud_external_data_manager.h" | 5 #include "chrome/browser/chromeos/policy/user_cloud_external_data_manager.h" |
| 6 | 6 |
| 7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/sequenced_task_runner.h" | 9 #include "base/sequenced_task_runner.h" |
| 10 #include "chrome/browser/chromeos/policy/cloud_external_data_store.h" | 10 #include "chrome/browser/chromeos/policy/cloud_external_data_store.h" |
| 11 #include "chrome/browser/policy/cloud/cloud_policy_store.h" | 11 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
| 12 #include "chrome/browser/policy/cloud/resource_cache.h" | 12 #include "components/policy/core/common/cloud/resource_cache.h" |
| 13 | 13 |
| 14 namespace policy { | 14 namespace policy { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 const char kCacheKey[] = "data"; | 18 const char kCacheKey[] = "data"; |
| 19 | 19 |
| 20 } // namespace | 20 } // namespace |
| 21 | 21 |
| 22 UserCloudExternalDataManager::UserCloudExternalDataManager( | 22 UserCloudExternalDataManager::UserCloudExternalDataManager( |
| (...skipping 10 matching lines...) Expand all Loading... |
| 33 SetExternalDataStore(make_scoped_ptr(new CloudExternalDataStore( | 33 SetExternalDataStore(make_scoped_ptr(new CloudExternalDataStore( |
| 34 kCacheKey, backend_task_runner, resource_cache_))); | 34 kCacheKey, backend_task_runner, resource_cache_))); |
| 35 } | 35 } |
| 36 | 36 |
| 37 UserCloudExternalDataManager::~UserCloudExternalDataManager() { | 37 UserCloudExternalDataManager::~UserCloudExternalDataManager() { |
| 38 SetExternalDataStore(scoped_ptr<CloudExternalDataStore>()); | 38 SetExternalDataStore(scoped_ptr<CloudExternalDataStore>()); |
| 39 backend_task_runner_->DeleteSoon(FROM_HERE, resource_cache_); | 39 backend_task_runner_->DeleteSoon(FROM_HERE, resource_cache_); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace policy | 42 } // namespace policy |
| OLD | NEW |