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

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

Issue 22645011: policy: use JSON schema to deserialize entries from Windows registry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 3rd party policy unit tests Created 7 years, 3 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_win_unittest.cc ('k') | chrome/browser/policy/registry_dict_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/registry_dict_win.h
diff --git a/chrome/browser/policy/registry_dict_win.h b/chrome/browser/policy/registry_dict_win.h
index 43abf26007a5b6205f681b535f4a4eeac20172a2..28da8db38deb29c5b761023bb668d6fc2b64919d 100644
--- a/chrome/browser/policy/registry_dict_win.h
+++ b/chrome/browser/policy/registry_dict_win.h
@@ -13,6 +13,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
+#include "components/policy/core/common/policy_schema.h"
namespace base {
class DictionaryValue;
@@ -72,8 +73,7 @@ class RegistryDict {
// collisions, the key wins. |schema| supplies an optional JSON schema that
// will be used to map types to base::Value types. The returned object is
// either a base::DictionaryValue or a base::ListValue.
- scoped_ptr<base::Value> ConvertToJSON(
- const base::DictionaryValue* schema) const;
+ scoped_ptr<base::Value> ConvertToJSON(const PolicySchema* schema) const;
const KeyMap& keys() const { return keys_; }
const ValueMap& values() const { return values_; }
« no previous file with comments | « chrome/browser/policy/policy_loader_win_unittest.cc ('k') | chrome/browser/policy/registry_dict_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698