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

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

Issue 2486813002: Add DeviceADPolicyManager to provide AD policy. (Closed)
Patch Set: Address Bernhard's comments Created 4 years, 1 month 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
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 2aa9a5910cf052a88cc7b4cfb1dad67cde32b4d5..19a0f495fd3f424ac4c009324cc9d429482fd97e 100644
--- a/components/policy/core/common/policy_map.h
+++ b/components/policy/core/common/policy_map.h
@@ -75,6 +75,9 @@ class POLICY_EXPORT PolicyMap {
std::unique_ptr<ExternalDataFetcher> external_data_fetcher);
void Set(const std::string& policy, Entry entry);
+ // For all policies, overwrite the PolicySource with |source|.
+ void SetSourceForAll(PolicySource source);
+
// Erase the given |policy|, if it exists in this map.
void Erase(const std::string& policy);

Powered by Google App Engine
This is Rietveld 408576698