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

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

Issue 10805057: Modified PolicyService to register observers by domain only, instead of domain and component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit Created 8 years, 5 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
« no previous file with comments | « chrome/browser/policy/policy_service_stub.h ('k') | chrome/browser/ui/webui/policy_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" 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,
16 const std::string& component_id,
17 Observer* observer) {} 16 Observer* observer) {}
18 17
19 void PolicyServiceStub::RemoveObserver(PolicyDomain domain, 18 void PolicyServiceStub::RemoveObserver(PolicyDomain domain,
20 const std::string& component_id,
21 Observer* observer) {} 19 Observer* observer) {}
22 20
23 const PolicyMap& PolicyServiceStub::GetPolicies( 21 const PolicyMap& PolicyServiceStub::GetPolicies(
24 PolicyDomain domain, 22 PolicyDomain domain,
25 const std::string& component_id) const { 23 const std::string& component_id) const {
26 return kEmpty_; 24 return kEmpty_;
27 }; 25 };
28 26
29 bool PolicyServiceStub::IsInitializationComplete() const { 27 bool PolicyServiceStub::IsInitializationComplete() const {
30 return true; 28 return true;
31 } 29 }
32 30
33 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) { 31 void PolicyServiceStub::RefreshPolicies(const base::Closure& callback) {
34 if (!callback.is_null()) 32 if (!callback.is_null())
35 callback.Run(); 33 callback.Run();
36 } 34 }
37 35
38 } // namespace policy 36 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_service_stub.h ('k') | chrome/browser/ui/webui/policy_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698