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

Unified Diff: chrome/browser/policy/policy_service_stub.h

Issue 10386097: Refactored ConfigurationPolicyProvider to provide PolicyBundles instead of PolicyMaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/policy/policy_service_impl_unittest.cc ('k') | chrome/browser/policy/policy_service_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_service_stub.h
diff --git a/chrome/browser/policy/policy_service_stub.h b/chrome/browser/policy/policy_service_stub.h
index b0895cefd34a04aa3a67ed5997a038ac8b7a1d89..24fac98e169e83c7d60abaa48c0a96cd2081543e 100644
--- a/chrome/browser/policy/policy_service_stub.h
+++ b/chrome/browser/policy/policy_service_stub.h
@@ -7,6 +7,7 @@
#pragma once
#include "base/basictypes.h"
+#include "chrome/browser/policy/policy_map.h"
#include "chrome/browser/policy/policy_service.h"
namespace policy {
@@ -26,7 +27,7 @@ class PolicyServiceStub : public PolicyService {
const std::string& component_id,
Observer* observer) OVERRIDE;
- virtual const PolicyMap* GetPolicies(
+ virtual const PolicyMap& GetPolicies(
PolicyDomain domain,
const std::string& component_id) const OVERRIDE;
@@ -34,6 +35,8 @@ class PolicyServiceStub : public PolicyService {
virtual void RefreshPolicies(const base::Closure& callback) OVERRIDE;
private:
+ const PolicyMap kEmpty_;
+
DISALLOW_COPY_AND_ASSIGN(PolicyServiceStub);
};
« no previous file with comments | « chrome/browser/policy/policy_service_impl_unittest.cc ('k') | chrome/browser/policy/policy_service_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698