| 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/policy/cloud/mock_cloud_external_data_manager.h" | 5 #include "components/policy/core/common/cloud/mock_cloud_external_data_manager.h
" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "components/policy/core/common/external_data_fetcher.h" | 9 #include "components/policy/core/common/external_data_fetcher.h" |
| 10 #include "net/url_request/url_request_context_getter.h" | 10 #include "net/url_request/url_request_context_getter.h" |
| 11 | 11 |
| 12 namespace policy { | 12 namespace policy { |
| 13 | 13 |
| 14 MockCloudExternalDataManager::MockCloudExternalDataManager() { | 14 MockCloudExternalDataManager::MockCloudExternalDataManager() { |
| 15 } | 15 } |
| 16 | 16 |
| 17 MockCloudExternalDataManager::~MockCloudExternalDataManager() { | 17 MockCloudExternalDataManager::~MockCloudExternalDataManager() { |
| 18 } | 18 } |
| 19 | 19 |
| 20 scoped_ptr<ExternalDataFetcher> | 20 scoped_ptr<ExternalDataFetcher> |
| 21 MockCloudExternalDataManager::CreateExternalDataFetcher( | 21 MockCloudExternalDataManager::CreateExternalDataFetcher( |
| 22 const std::string& policy) { | 22 const std::string& policy) { |
| 23 return make_scoped_ptr(new ExternalDataFetcher(weak_factory_.GetWeakPtr(), | 23 return make_scoped_ptr(new ExternalDataFetcher(weak_factory_.GetWeakPtr(), |
| 24 policy)); | 24 policy)); |
| 25 } | 25 } |
| 26 | 26 |
| 27 } // namespace policy | 27 } // namespace policy |
| OLD | NEW |