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

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

Issue 15061007: Added a PolicyDomainDescriptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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_browsertest.cc ('k') | chrome/browser/policy/policy_bundle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_bundle.h
diff --git a/chrome/browser/policy/policy_bundle.h b/chrome/browser/policy/policy_bundle.h
index decb126140ef5ea63ec9b5c171c248e025517d0f..a7149ca87b0c278f7d5a8821c4aa5ff99bb154b6 100644
--- a/chrome/browser/policy/policy_bundle.h
+++ b/chrome/browser/policy/policy_bundle.h
@@ -19,6 +19,7 @@ class PolicyMap;
class PolicyBundle {
public:
typedef std::map<PolicyNamespace, PolicyMap*> MapType;
+ typedef MapType::iterator iterator;
typedef MapType::const_iterator const_iterator;
PolicyBundle();
@@ -46,10 +47,13 @@ class PolicyBundle {
bool Equals(const PolicyBundle& other) const;
// Returns iterators to the beginning and end of the underlying container.
+ iterator begin() { return policy_bundle_.begin(); }
+ iterator end() { return policy_bundle_.end(); }
+
// These can be used to iterate over and read the PolicyMaps, but not to
// modify them.
- const_iterator begin() const;
- const_iterator end() const;
+ const_iterator begin() const { return policy_bundle_.begin(); }
+ const_iterator end() const { return policy_bundle_.end(); }
// Erases all the existing pairs.
void Clear();
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/policy/policy_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698