1// Copyright (c) 2012 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 "components/policy/core/common/policy_service_stub.h" 6 7#include "base/message_loop/message_loop.h" 8 9namespace policy { 10 11PolicyServiceStub::PolicyServiceStub() {} 12 13PolicyServiceStub::~PolicyServiceStub() {} 14 15void PolicyServiceStub::AddObserver(PolicyDomain domain, 16 Observer* observer) {} 17 18void PolicyServiceStub::RemoveObserver(PolicyDomain domain, 19 Observer* observer) {} 20 21const PolicyMap& PolicyServiceStub::GetPolicies( 22 const PolicyNamespace& ns) const { 23 return kEmpty_; 24}; 25 26bool PolicyServiceStub::IsInitializationComplete(PolicyDomain domain) const { 27 return true; 28} 29 30void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) { 31 if (!callback.is_null()) 32 callback.Run(); 33} 34 35} // namespace policy 36