Index: chrome/browser/policy/managed_bookmarks_policy_handler.h |
diff --git a/chrome/browser/policy/managed_bookmarks_policy_handler.h b/chrome/browser/policy/managed_bookmarks_policy_handler.h |
index 13a4f9cf3d80b7cd6670b0938f793c75e3a47b3f..8fcb1c95c7b1876adf98174739a7a00d9936310b 100644 |
--- a/chrome/browser/policy/managed_bookmarks_policy_handler.h |
+++ b/chrome/browser/policy/managed_bookmarks_policy_handler.h |
@@ -5,32 +5,31 @@ |
#ifndef CHROME_BROWSER_POLICY_MANAGED_BOOKMARKS_POLICY_HANDLER_H_ |
#define CHROME_BROWSER_POLICY_MANAGED_BOOKMARKS_POLICY_HANDLER_H_ |
-#include <string> |
- |
#include "components/policy/core/browser/configuration_policy_handler.h" |
namespace base { |
-class Value; |
+class ListValue; |
} |
namespace policy { |
// Handles the ManagedBookmarks policy. |
-class ManagedBookmarksPolicyHandler : public TypeCheckingPolicyHandler { |
+class ManagedBookmarksPolicyHandler : public SchemaValidatingPolicyHandler { |
public: |
static const char kName[]; |
static const char kUrl[]; |
+ static const char kChildren[]; |
- ManagedBookmarksPolicyHandler(); |
+ explicit ManagedBookmarksPolicyHandler(Schema chrome_schema); |
virtual ~ManagedBookmarksPolicyHandler(); |
// ConfigurationPolicyHandler methods: |
- virtual bool CheckPolicySettings(const PolicyMap& policies, |
- PolicyErrorMap* errors) OVERRIDE; |
virtual void ApplyPolicySettings(const PolicyMap& policies, |
PrefValueMap* prefs) OVERRIDE; |
private: |
+ void FilterBookmarks(base::ListValue* bookmarks); |
+ |
DISALLOW_COPY_AND_ASSIGN(ManagedBookmarksPolicyHandler); |
}; |