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

Issue 7892052: Adds Find method to the ListValue class. (Closed)

Created:
9 years, 3 months ago by pastarmovj
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=101741

Patch Set 1 #

Patch Set 2 : Changed to version using find_if. #

Patch Set 3 : Fixed up the return type a little. #

Total comments: 6

Patch Set 4 : Addressed comments. #

Patch Set 5 : Make the windows compiler happy. #

Patch Set 6 : Simplified the code a bit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -0 lines) Patch
M base/values.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M base/values.cc View 1 2 3 4 5 3 chunks +22 lines, -0 lines 0 comments Download
M base/values_unittest.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
pastarmovj
A small useful addition to the ListValue type which will replace some calls to IsEmailInUserlist ...
9 years, 3 months ago (2011-09-15 11:55:36 UTC) #1
pastarmovj
On 2011/09/15 11:55:36, pastarmovj wrote: > A small useful addition to the ListValue type which ...
9 years, 3 months ago (2011-09-15 11:56:11 UTC) #2
Mattias Nissler (ping if slow)
Seems like std::find() should do the trick?
9 years, 3 months ago (2011-09-15 12:01:10 UTC) #3
pastarmovj
Tuned it up as we discussed offline. I decided against exposing completely the Compare functor ...
9 years, 3 months ago (2011-09-15 13:31:59 UTC) #4
Mattias Nissler (ping if slow)
please also run this by a base/ OWNER. http://codereview.chromium.org/7892052/diff/3002/base/values.cc File base/values.cc (right): http://codereview.chromium.org/7892052/diff/3002/base/values.cc#newcode62 base/values.cc:62: class ...
9 years, 3 months ago (2011-09-15 13:40:39 UTC) #5
pastarmovj
Adding Darin for owner approval. http://codereview.chromium.org/7892052/diff/3002/base/values.cc File base/values.cc (right): http://codereview.chromium.org/7892052/diff/3002/base/values.cc#newcode62 base/values.cc:62: class CompareValues { On ...
9 years, 3 months ago (2011-09-16 08:03:49 UTC) #6
darin (slow to review)
OK, LGTM
9 years, 3 months ago (2011-09-17 04:59:05 UTC) #7
commit-bot: I haz the power
9 years, 3 months ago (2011-09-19 15:23:13 UTC) #8
Change committed as 101741

Powered by Google App Engine
This is Rietveld 408576698