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