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

Issue 9187047: Use ScopedVector instead of std::vector in case of repeated messages. (Closed)

Created:
8 years, 11 months ago by Jun Mukai
Modified:
8 years, 11 months ago
Reviewers:
satorux1, awong, Evan Martin
CC:
chromium-reviews, brettw-cc_chromium.org, zel, satorux1
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Use ScopedVector instead of std::vector in case of repeated messages. During using this library, I realized that we want to use DISALLOW_COPY_AND_ASSIGN for the messages and RepeatedMessageConverter is inconsistent with such ones because it uses a copy constructor as "push_back(NestedType())". Then I now think to use ScopedVector. BUG=109375 TEST=passed locally Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117786

Patch Set 1 #

Total comments: 4

Patch Set 2 : Modify all std::vector to ScopedVector #

Patch Set 3 : git rebase and merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -48 lines) Patch
M base/json/json_value_converter.h View 1 2 10 chunks +33 lines, -33 lines 0 comments Download
M base/json/json_value_converter_unittest.cc View 1 2 6 chunks +18 lines, -15 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Jun Mukai
8 years, 11 months ago (2012-01-12 07:53:17 UTC) #1
awong
http://codereview.chromium.org/9187047/diff/1/base/json/json_value_converter.h File base/json/json_value_converter.h (right): http://codereview.chromium.org/9187047/diff/1/base/json/json_value_converter.h#newcode214 base/json/json_value_converter.h:214: const base::Value& value, std::vector<Element>* field) const OVERRIDE { Why ...
8 years, 11 months ago (2012-01-13 00:27:54 UTC) #2
Jun Mukai
http://codereview.chromium.org/9187047/diff/1/base/json/json_value_converter.h File base/json/json_value_converter.h (right): http://codereview.chromium.org/9187047/diff/1/base/json/json_value_converter.h#newcode214 base/json/json_value_converter.h:214: const base::Value& value, std::vector<Element>* field) const OVERRIDE { On ...
8 years, 11 months ago (2012-01-13 01:09:21 UTC) #3
Jun Mukai
Done the rewriting. PTAL. http://codereview.chromium.org/9187047/diff/1/base/json/json_value_converter.h File base/json/json_value_converter.h (right): http://codereview.chromium.org/9187047/diff/1/base/json/json_value_converter.h#newcode214 base/json/json_value_converter.h:214: const base::Value& value, std::vector<Element>* field) ...
8 years, 11 months ago (2012-01-13 02:10:37 UTC) #4
satorux1
http://codereview.chromium.org/9187047/diff/1/base/json/json_value_converter.h File base/json/json_value_converter.h (right): http://codereview.chromium.org/9187047/diff/1/base/json/json_value_converter.h#newcode214 base/json/json_value_converter.h:214: const base::Value& value, std::vector<Element>* field) const OVERRIDE { On ...
8 years, 11 months ago (2012-01-13 02:13:51 UTC) #5
awong
LGTM
8 years, 11 months ago (2012-01-13 02:21:41 UTC) #6
Jun Mukai
Evan, can you check this CL too for the OWNER's point of view?
8 years, 11 months ago (2012-01-13 11:35:41 UTC) #7
Evan Martin
LGTM
8 years, 11 months ago (2012-01-13 16:25:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/9187047/9001
8 years, 11 months ago (2012-01-13 16:36:09 UTC) #9
commit-bot: I haz the power
Can't apply patch for file base/json/json_value_converter_unittest.cc. While running patch -p1 --forward --force; patching file base/json/json_value_converter_unittest.cc ...
8 years, 11 months ago (2012-01-13 16:36:12 UTC) #10
Jun Mukai
Oops... Did the git rebase and resolve the conflict. Trying to make sure by git ...
8 years, 11 months ago (2012-01-13 17:16:00 UTC) #11
awong
FYI, if your'e going to commit queue it and all that your'e worried about is ...
8 years, 11 months ago (2012-01-13 17:42:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/9187047/20001
8 years, 11 months ago (2012-01-14 04:20:17 UTC) #13
commit-bot: I haz the power
8 years, 11 months ago (2012-01-14 05:36:14 UTC) #14
Change committed as 117786

Powered by Google App Engine
This is Rietveld 408576698