| 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" |
| 8 |
| 7 namespace policy { | 9 namespace policy { |
| 8 | 10 |
| 9 PolicyServiceStub::PolicyServiceStub() {} | 11 PolicyServiceStub::PolicyServiceStub() {} |
| 10 | 12 |
| 11 PolicyServiceStub::~PolicyServiceStub() {} | 13 PolicyServiceStub::~PolicyServiceStub() {} |
| 12 | 14 |
| 13 void PolicyServiceStub::AddObserver(PolicyDomain domain, | 15 void PolicyServiceStub::AddObserver(PolicyDomain domain, |
| 14 const std::string& component_id, | 16 const std::string& component_id, |
| 15 Observer* observer) {} | 17 Observer* observer) {} |
| 16 | 18 |
| 17 void PolicyServiceStub::RemoveObserver(PolicyDomain domain, | 19 void PolicyServiceStub::RemoveObserver(PolicyDomain domain, |
| 18 const std::string& component_id, | 20 const std::string& component_id, |
| 19 Observer* observer) {} | 21 Observer* observer) {} |
| 20 | 22 |
| 21 const PolicyMap* PolicyServiceStub::GetPolicies( | 23 const PolicyMap* PolicyServiceStub::GetPolicies( |
| 22 PolicyDomain domain, | 24 PolicyDomain domain, |
| 23 const std::string& component_id) const { | 25 const std::string& component_id) const { |
| 24 return NULL; | 26 return NULL; |
| 25 }; | 27 }; |
| 26 | 28 |
| 27 bool PolicyServiceStub::IsInitializationComplete() const { | 29 bool PolicyServiceStub::IsInitializationComplete() const { |
| 28 return true; | 30 return true; |
| 29 } | 31 } |
| 30 | 32 |
| 33 void RefreshPolicies(const base::Closure& callback) { |
| 34 MessageLoop::current()->PostTask(FROM_HERE, callback); |
| 35 } |
| 36 |
| 31 } // namespace policy | 37 } // namespace policy |
| OLD | NEW |