Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: components/policy/core/common/cloud/mock_cloud_external_data_manager.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698