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

Unified Diff: components/policy/core/common/policy_map.h

Issue 2641343002: Use source parameter to determine policy priority. (Closed)
Patch Set: Add comment, make code more readable. Created 3 years, 11 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 | « no previous file | components/policy/core/common/policy_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/policy_map.h
diff --git a/components/policy/core/common/policy_map.h b/components/policy/core/common/policy_map.h
index 19a0f495fd3f424ac4c009324cc9d429482fd97e..cbc21dac2671fb5e4450ff0c10b57a4136ef7e9f 100644
--- a/components/policy/core/common/policy_map.h
+++ b/components/policy/core/common/policy_map.h
@@ -44,7 +44,8 @@ class POLICY_EXPORT PolicyMap {
// Returns a copy of |this|.
Entry DeepCopy() const;
- // Returns true if |this| has higher priority than |other|.
+ // Returns true if |this| has higher priority than |other|. The priority of
+ // the fields are level > scope > source.
Thiemo Nagel 2017/01/23 13:32:51 Nit: |level| > |scope| > |source|
Marton Hunyady 2017/01/23 13:36:17 Done.
bool has_higher_priority_than(const Entry& other) const;
// Returns true if |this| equals |other|.
« no previous file with comments | « no previous file | components/policy/core/common/policy_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698