Implement the popup blocking whitelist pref. This makes the whitelist actually function.BUG=11440
Review URL: http://codereview.chromium.org/115149
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15702 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/values.h b/base/values.h
index fa5b1017..cd68b10 100644
--- a/base/values.h
+++ b/base/values.h
@@ -334,6 +334,9 @@
// it will return false and the ListValue object will be unchanged.
bool Remove(size_t index, Value** out_value);
+ // Removes the first instance of |value| found in the list, if any.
+ void Remove(const Value& value);
+
// Appends a Value to the end of the list.
void Append(Value* in_value);
@@ -347,10 +350,6 @@
ListValue::const_iterator begin() const { return list_.begin(); }
ListValue::const_iterator end() const { return list_.end(); }
- ListValue::iterator Erase(iterator item) {
- return list_.erase(item);
- }
-
private:
DISALLOW_EVIL_CONSTRUCTORS(ListValue);