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

Unified Diff: base/values.h

Issue 115149: Implement the popup blocking whitelist pref. This makes the whitelist actual... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « no previous file | base/values.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/values.h
===================================================================
--- base/values.h (revision 15654)
+++ base/values.h (working copy)
@@ -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 |in_value| found in the list, if any.
sky 2009/05/09 00:20:41 I think this should take a const Value& as you are
+ void Remove(Value* in_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);
« no previous file with comments | « no previous file | base/values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698