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

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

Issue 307993005: Enable the ManagedBookmarks policy on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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
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);
};

Powered by Google App Engine
This is Rietveld 408576698