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

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

Issue 2724763002: Initialize source field of PolicyMap::Entry (Closed)
Patch Set: Move default values to header file. Created 3 years, 10 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 0eb7839f6e3f4d5fdd8d0b05d7c5b19df1873201..192c2557d6bdba5daad939bb921288aa09d8d924 100644
--- a/components/policy/core/common/policy_map.h
+++ b/components/policy/core/common/policy_map.h
@@ -27,13 +27,13 @@ class POLICY_EXPORT PolicyMap {
// Each policy maps to an Entry which keeps the policy value as well as other
// relevant data about the policy.
struct POLICY_EXPORT Entry {
- PolicyLevel level;
- PolicyScope scope;
+ PolicyLevel level = POLICY_LEVEL_RECOMMENDED;
+ PolicyScope scope = POLICY_SCOPE_USER;
std::unique_ptr<base::Value> value;
std::unique_ptr<ExternalDataFetcher> external_data_fetcher;
// For debugging and displaying only. Set by provider delivering the policy.
- PolicySource source;
+ PolicySource source = POLICY_SOURCE_ENTERPRISE_DEFAULT;
Entry();
~Entry();
« 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