| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include <utility> | |
| 6 | |
| 7 #include "chrome/browser/policy/profile_policy_connector.h" | |
| 8 #include "components/policy/core/common/policy_service_stub.h" | |
| 9 | |
| 10 namespace policy { | |
| 11 | |
| 12 ProfilePolicyConnector::ProfilePolicyConnector() {} | |
| 13 | |
| 14 ProfilePolicyConnector::~ProfilePolicyConnector() {} | |
| 15 | |
| 16 void ProfilePolicyConnector::Init( | |
| 17 SchemaRegistry* schema_registry, | |
| 18 CloudPolicyManager* user_cloud_policy_manager) { | |
| 19 policy_service_.reset(new PolicyServiceStub()); | |
| 20 } | |
| 21 | |
| 22 void ProfilePolicyConnector::InitForTesting(scoped_ptr<PolicyService> service) { | |
| 23 policy_service_ = std::move(service); | |
| 24 } | |
| 25 | |
| 26 void ProfilePolicyConnector::Shutdown() {} | |
| 27 | |
| 28 bool ProfilePolicyConnector::IsManaged() const { | |
| 29 return false; | |
| 30 } | |
| 31 | |
| 32 std::string ProfilePolicyConnector::GetManagementDomain() const { | |
| 33 return ""; | |
| 34 } | |
| 35 | |
| 36 bool ProfilePolicyConnector::IsPolicyFromCloudPolicy(const char* name) const { | |
| 37 return false; | |
| 38 } | |
| 39 | |
| 40 } // namespace policy | |
| OLD | NEW |