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

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

Issue 11183029: Don't reject extension list policies with invalid entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/configuration_policy_handler.h
diff --git a/chrome/browser/policy/configuration_policy_handler.h b/chrome/browser/policy/configuration_policy_handler.h
index f10bae2756e79eb6b3008a9fd197c4968bb9ac73..c59959ab2fa841bf624975008b392cd6048969ba 100644
--- a/chrome/browser/policy/configuration_policy_handler.h
+++ b/chrome/browser/policy/configuration_policy_handler.h
@@ -8,6 +8,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "chrome/browser/prefs/incognito_mode_prefs.h"
#include "chrome/common/content_settings.h"
@@ -119,7 +120,7 @@ class ExtensionListPolicyHandler : public TypeCheckingPolicyHandler {
// Runs sanity checks on the policy value and returns it in |extension_ids|.
bool CheckAndGetList(const PolicyMap& policies,
PolicyErrorMap* errors,
- const base::ListValue** extension_ids);
+ scoped_ptr<base::ListValue>* extension_ids);
private:
const char* pref_path_;

Powered by Google App Engine
This is Rietveld 408576698