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

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

Issue 10656046: Use a schema to decode 3rd party policy on windows, when present. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments Created 8 years, 6 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_loader_mac_unittest.cc ('k') | chrome/browser/policy/policy_loader_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_loader_win.h
diff --git a/chrome/browser/policy/policy_loader_win.h b/chrome/browser/policy/policy_loader_win.h
index a90dd1a782f8ab45ca1643bb10f9e04fadf75a3f..94c99655d20fef5f18ab2560ff3cb40af8eddb86 100644
--- a/chrome/browser/policy/policy_loader_win.h
+++ b/chrome/browser/policy/policy_loader_win.h
@@ -50,6 +50,32 @@ class PolicyLoaderWin : public AsyncPolicyLoader,
DISALLOW_COPY_AND_ASSIGN(PolicyLoaderWin);
};
+// Constants shared with tests.
+namespace registry_constants {
+ // Path separator for registry keys.
+ extern const wchar_t kPathSep[];
+ // Registry key within Chrome's key that contains 3rd party policy.
+ extern const wchar_t kThirdParty[];
+ // Registry key within an extension's namespace that contains mandatory
+ // policy.
+ extern const wchar_t kMandatory[];
+ // Registry key within an extension's namespace that contains recommended
+ // policy.
+ extern const wchar_t kRecommended[];
+ // Registry key within an extension's namespace that contains the policy
+ // schema.
+ extern const wchar_t kSchema[];
+ // Key in a JSON schema that indicates the expected type.
+ extern const char kType[];
+ // Key in a JSON schema that indicates the expected properties of an object.
+ extern const char kProperties[];
+ // Key in a JSON schema that indicates the default schema for object
+ // properties.
+ extern const char kAdditionalProperties[];
+ // Key in a JSON schema that indicates the expected type of list items.
+ extern const char kItems[];
+} // namespace registry_constants
+
} // namespace policy
#endif // CHROME_BROWSER_POLICY_POLICY_LOADER_WIN_H_
« no previous file with comments | « chrome/browser/policy/policy_loader_mac_unittest.cc ('k') | chrome/browser/policy/policy_loader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698