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

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

Issue 1586833002: Convert Pass()→std::move() for iOS build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert accidental //base change Created 4 years, 11 months 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
« no previous file with comments | « no previous file | components/dom_distiller/ios/distiller_page_ios.mm » ('j') | 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 <utility>
6
5 #include "chrome/browser/policy/profile_policy_connector.h" 7 #include "chrome/browser/policy/profile_policy_connector.h"
6
7 #include "components/policy/core/common/policy_service_stub.h" 8 #include "components/policy/core/common/policy_service_stub.h"
8 9
9 namespace policy { 10 namespace policy {
10 11
11 ProfilePolicyConnector::ProfilePolicyConnector() {} 12 ProfilePolicyConnector::ProfilePolicyConnector() {}
12 13
13 ProfilePolicyConnector::~ProfilePolicyConnector() {} 14 ProfilePolicyConnector::~ProfilePolicyConnector() {}
14 15
15 void ProfilePolicyConnector::Init( 16 void ProfilePolicyConnector::Init(
16 SchemaRegistry* schema_registry, 17 SchemaRegistry* schema_registry,
17 CloudPolicyManager* user_cloud_policy_manager) { 18 CloudPolicyManager* user_cloud_policy_manager) {
18 policy_service_.reset(new PolicyServiceStub()); 19 policy_service_.reset(new PolicyServiceStub());
19 } 20 }
20 21
21 void ProfilePolicyConnector::InitForTesting(scoped_ptr<PolicyService> service) { 22 void ProfilePolicyConnector::InitForTesting(scoped_ptr<PolicyService> service) {
22 policy_service_ = service.Pass(); 23 policy_service_ = std::move(service);
23 } 24 }
24 25
25 void ProfilePolicyConnector::Shutdown() {} 26 void ProfilePolicyConnector::Shutdown() {}
26 27
27 bool ProfilePolicyConnector::IsManaged() const { 28 bool ProfilePolicyConnector::IsManaged() const {
28 return false; 29 return false;
29 } 30 }
30 31
31 std::string ProfilePolicyConnector::GetManagementDomain() const { 32 std::string ProfilePolicyConnector::GetManagementDomain() const {
32 return ""; 33 return "";
33 } 34 }
34 35
35 bool ProfilePolicyConnector::IsPolicyFromCloudPolicy(const char* name) const { 36 bool ProfilePolicyConnector::IsPolicyFromCloudPolicy(const char* name) const {
36 return false; 37 return false;
37 } 38 }
38 39
39 } // namespace policy 40 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | components/dom_distiller/ios/distiller_page_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698