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

Issue 10684003: Make SplitString() and variants clear their outparam vector. (Note that SplitStringIntoKeyValues()… (Closed)

Created:
8 years, 6 months ago by Peter Kasting
Modified:
8 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, erikwright (departed), brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., jshin+watch_chromium.org
Visibility:
Public.

Description

Make SplitString() and variants clear their outparam vector. (Note that SplitStringIntoKeyValues() and SplitStringIntoKeyValuePairs() already did this.) This is more in line with what other APIs that take outparams do. I audited all callers, and the only ones affected by this are the buggy ones in bug 134695 that already wanted this behavior, as well as the couple of places in this CL that were manually calling clear() and now don't have to. BUG=134695 TEST=none TBR=brettw,phajdan.jr Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=144323

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -9 lines) Patch
M base/string_split.h View 1 chunk +3 lines, -3 lines 0 comments Download
M base/string_split.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M base/string_split_unittest.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_vms.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/plugins/npapi/plugin_list_win.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Peter Kasting
8 years, 6 months ago (2012-06-26 21:25:41 UTC) #1
Paweł Hajdan Jr.
8 years, 5 months ago (2012-06-27 07:17:28 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698