Ignore title parameter for navigator.registerProtocolHandler
[chromium-blink-merge.git] / components / policy / core / common / policy_service_stub.cc
blob1f9682ba5fd283cf03daed12d0ebbfddba499749
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.
5 #include "components/policy/core/common/policy_service_stub.h"
7 #include "base/message_loop/message_loop.h"
9 namespace policy {
11 PolicyServiceStub::PolicyServiceStub() {}
13 PolicyServiceStub::~PolicyServiceStub() {}
15 void PolicyServiceStub::AddObserver(PolicyDomain domain,
16 Observer* observer) {}
18 void PolicyServiceStub::RemoveObserver(PolicyDomain domain,
19 Observer* observer) {}
21 const PolicyMap& PolicyServiceStub::GetPolicies(
22 const PolicyNamespace& ns) const {
23 return kEmpty_;
26 bool PolicyServiceStub::IsInitializationComplete(PolicyDomain domain) const {
27 return true;
30 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) {
31 if (!callback.is_null())
32 callback.Run();
35 } // namespace policy