Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: chrome/browser/policy/policy_service_stub.cc

Issue 10236003: Added RefreshPolicies to PolicyService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 if (!callback.is_null())
35 callback.Run();
36 }
37
31 } // namespace policy 38 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_service_stub.h ('k') | chrome/browser/policy/policy_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698