OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "chrome/browser/policy/policy_service_stub.h" | 5 #include "chrome/browser/policy/policy_service_stub.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 | 8 |
9 namespace policy { | 9 namespace policy { |
10 | 10 |
11 PolicyServiceStub::PolicyServiceStub() {} | 11 PolicyServiceStub::PolicyServiceStub() {} |
12 | 12 |
13 PolicyServiceStub::~PolicyServiceStub() {} | 13 PolicyServiceStub::~PolicyServiceStub() {} |
14 | 14 |
15 void PolicyServiceStub::AddObserver(PolicyDomain domain, | 15 void PolicyServiceStub::AddObserver(PolicyDomain domain, Observer* observer) {} |
Mattias Nissler (ping if slow)
2012/07/23 16:47:31
nit: I'd format this consistent with RemoveObserve
Joao da Silva
2012/07/24 09:39:59
Done.
| |
16 const std::string& component_id, | |
17 Observer* observer) {} | |
18 | 16 |
19 void PolicyServiceStub::RemoveObserver(PolicyDomain domain, | 17 void PolicyServiceStub::RemoveObserver(PolicyDomain domain, |
20 const std::string& component_id, | |
21 Observer* observer) {} | 18 Observer* observer) {} |
22 | 19 |
23 const PolicyMap& PolicyServiceStub::GetPolicies( | 20 const PolicyMap& PolicyServiceStub::GetPolicies( |
24 PolicyDomain domain, | 21 PolicyDomain domain, |
25 const std::string& component_id) const { | 22 const std::string& component_id) const { |
26 return kEmpty_; | 23 return kEmpty_; |
27 }; | 24 }; |
28 | 25 |
29 bool PolicyServiceStub::IsInitializationComplete() const { | 26 bool PolicyServiceStub::IsInitializationComplete() const { |
30 return true; | 27 return true; |
31 } | 28 } |
32 | 29 |
33 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) { | 30 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) { |
34 if (!callback.is_null()) | 31 if (!callback.is_null()) |
35 callback.Run(); | 32 callback.Run(); |
36 } | 33 } |
37 | 34 |
38 } // namespace policy | 35 } // namespace policy |
OLD | NEW |