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

Side by Side Diff: chrome/browser/policy/profile_policy_connector_stub.cc

Issue 54483004: policy: Remove ProfilePolicyConnector's dependency on other service factories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix iOS compilation. Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_factory.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/profile_policy_connector.h" 5 #include "chrome/browser/policy/profile_policy_connector.h"
6 6
7 #include "chrome/browser/policy/policy_service_stub.h" 7 #include "chrome/browser/policy/policy_service_stub.h"
8 8
9 namespace policy { 9 namespace policy {
10 10
11 ProfilePolicyConnector::ProfilePolicyConnector(Profile* profile) {} 11 ProfilePolicyConnector::ProfilePolicyConnector(Profile* profile) {}
12 12
13 ProfilePolicyConnector::~ProfilePolicyConnector() {} 13 ProfilePolicyConnector::~ProfilePolicyConnector() {}
14 14
15 void ProfilePolicyConnector::Init(bool force_immediate_load) { 15 void ProfilePolicyConnector::Init(
16 bool force_immediate_load,
17 CloudPolicyManager* user_cloud_policy_manager) {
16 policy_service_.reset(new PolicyServiceStub()); 18 policy_service_.reset(new PolicyServiceStub());
17 } 19 }
18 20
19 void ProfilePolicyConnector::InitForTesting(scoped_ptr<PolicyService> service) { 21 void ProfilePolicyConnector::InitForTesting(scoped_ptr<PolicyService> service) {
20 policy_service_ = service.Pass(); 22 policy_service_ = service.Pass();
21 } 23 }
22 24
23 void ProfilePolicyConnector::Shutdown() {} 25 void ProfilePolicyConnector::Shutdown() {}
24 26
25 bool ProfilePolicyConnector::UsedPolicyCertificates() { 27 bool ProfilePolicyConnector::UsedPolicyCertificates() {
26 return false; 28 return false;
27 } 29 }
28 30
29 } // namespace policy 31 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698