diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-09 00:33:04 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-09 00:33:04 +0000 |
commit | e7f5c6f8aede399fe896e8218d89087408011d18 (patch) | |
tree | 58ed75a2b1ae424a089a9a9fd8bb5724fed35ded /base/values.h | |
parent | 1188a6c0b9025c6ccb9eff833599b951fc778a9a (diff) | |
download | chromium_src-e7f5c6f8aede399fe896e8218d89087408011d18.zip chromium_src-e7f5c6f8aede399fe896e8218d89087408011d18.tar.gz chromium_src-e7f5c6f8aede399fe896e8218d89087408011d18.tar.bz2 |
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
Diffstat (limited to 'base/values.h')
-rw-r--r-- | base/values.h | 7 |
1 files changed, 3 insertions, 4 deletions
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 @@ class ListValue : public Value { // 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 @@ class ListValue : public Value { 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); |