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

Issue 2850773002: Make base::DictionaryValue::Set* return pointers (Closed)

Created:
3 years, 7 months ago by jdoerrie
Modified:
3 years, 7 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

Make base::DictionaryValue::Set* return pointers This change changes the various base::DictionaryValue::Set* methods to return a pointer to the newly added Value. This is in response to the discussion on https://codereview.chromium.org/2845113002/. Furthermore, this is motivated by the fact that various insert methods of std::map also return a handle to the just added element. R=brettw@chromium.org BUG=646113 Review-Url: https://codereview.chromium.org/2850773002 Cr-Commit-Position: refs/heads/master@{#468146} Committed: https://chromium.googlesource.com/chromium/src/+/b94e542cdd7e52a69d1c439d38cec3631e133583

Patch Set 1 #

Patch Set 2 : Fix Android Compile Error #

Patch Set 3 : Add SetDictionary* and SetList* #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -52 lines) Patch
M base/values.h View 1 2 1 chunk +25 lines, -16 lines 0 comments Download
M base/values.cc View 1 2 2 chunks +63 lines, -36 lines 0 comments Download
M base/values_unittest.cc View 1 2 1 chunk +107 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (13 generated)
jdoerrie
Hi Brett, please review. The main point of this CL is to simplify removing the ...
3 years, 7 months ago (2017-04-28 11:05:18 UTC) #9
brettw
lgtm
3 years, 7 months ago (2017-04-28 21:40:02 UTC) #12
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/2850773002/40001
3 years, 7 months ago (2017-04-28 21:48:15 UTC) #14
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 21:53:11 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b94e542cdd7e52a69d1c439d38ce...

Powered by Google App Engine
This is Rietveld 408576698