summaryrefslogtreecommitdiffstats
path: root/chrome/browser/policy/profile_policy_connector_stub.cc
blob: 10774f62bb783243296650d5f09c1cb565bdb7a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/policy/profile_policy_connector.h"

#include "components/policy/core/common/policy_service_stub.h"

namespace policy {

ProfilePolicyConnector::ProfilePolicyConnector() {}

ProfilePolicyConnector::~ProfilePolicyConnector() {}

void ProfilePolicyConnector::Init(
    bool force_immediate_load,
    SchemaRegistry* schema_registry,
    CloudPolicyManager* user_cloud_policy_manager) {
  policy_service_.reset(new PolicyServiceStub());
}

void ProfilePolicyConnector::InitForTesting(scoped_ptr<PolicyService> service) {
  policy_service_ = service.Pass();
}

void ProfilePolicyConnector::Shutdown() {}

bool ProfilePolicyConnector::IsManaged() const {
  return false;
}

std::string ProfilePolicyConnector::GetManagementDomain() const {
  return "";
}

bool ProfilePolicyConnector::IsPolicyFromCloudPolicy(const char* name) const {
  return false;
}

}  // namespace policy