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

Issue 2823233002: Introduce Value::GetList and Value(ListStorage) (Closed)

Created:
3 years, 8 months ago by jdoerrie
Modified:
3 years, 8 months ago
Reviewers:
brettw
CC:
chromium-reviews, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce Value::GetList and Value(ListStorage) As part of the ongoing effort to move base::Value to value semantics this change introduces base::Value::GetList accessors that expose the underlying ListStorage of the ListValue. This builds on top of r463684 which made the necessary modifications to ListStorage. Furthermore this change deprecates the existing ListValue API in favor of using std::vector's API directly. Lastly, constructors taking ListStorage parameters are introduced to be consistent with already existing constructors as well as making it convenient to create ListValues from previously existing std::vector<base::Value>s. R=brettw@chromium.org BUG=646113 Review-Url: https://codereview.chromium.org/2823233002 Cr-Commit-Position: refs/heads/master@{#465517} Committed: https://chromium.googlesource.com/chromium/src/+/2b7d0fcd0261f43efa4592f49238270f500cc39a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -37 lines) Patch
M base/values.h View 2 chunks +6 lines, -0 lines 0 comments Download
M base/values.cc View 3 chunks +24 lines, -9 lines 0 comments Download
M base/values_unittest.cc View 3 chunks +15 lines, -28 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 11 (7 generated)
jdoerrie
Hi Brett, please review.
3 years, 8 months ago (2017-04-18 20:49:11 UTC) #5
brettw
lgtm
3 years, 8 months ago (2017-04-18 20:51:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2823233002/1
3 years, 8 months ago (2017-04-19 07:11:34 UTC) #8
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 07:15:56 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/2b7d0fcd0261f43efa4592f49238...

Powered by Google App Engine
This is Rietveld 408576698