Adds Find method to the ListValue class.

This method makes working with lists easierand will be needed from the
refactored signed settings code.

BUG=chromium-os:14054
TEST=base_unittest --gtest_filter=ValuesTest.List


Review URL: http://codereview.chromium.org/7892052

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101741 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 5fb35372c80f9436a980281cc826d8a72fcf8915
diff --git a/base/values.h b/base/values.h
index a30791b..90cc40c 100644
--- a/base/values.h
+++ b/base/values.h
@@ -418,6 +418,11 @@
   // Returns true if successful, or false if the index was out of range.
   bool Insert(size_t index, Value* in_value);
 
+  // Searches for the first instance of |value| in the list using the Equals
+  // method of the Value type.
+  // Returns a const_iterator to the found item or to end() if none exists.
+  const_iterator Find(const Value& value) const;
+
   // Swaps contents with the |other| list.
   void Swap(ListValue* other) {
     list_.swap(other->list_);