DescriptionIntroduce 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 #
Dependent Patchsets: Messages
Total messages: 11 (7 generated)
|