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

Issue 6317016: Change UTF8ToUTF16 to accept const StringPiece&. (Closed)

Created:
9 years, 11 months ago by James Su
Modified:
9 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org, cbentzel+watch_chromium.org, James Hawkins, pam+watch_chromium.org, jshin+watch_chromium.org, dhollowa, michaeln, Ilya Sherman, Erik does not do reviews, Paweł Hajdan Jr., Randy Smith (Not in Mondays), Aaron Boodman, amit
Visibility:
Public.

Description

Change UTF8ToUTF16 to accept const StringPiece&. BUG=70936 TEST=All unit tests should pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72921

Patch Set 1 #

Total comments: 2

Patch Set 2 : Get rid of <algorithm> and <iosfwd> from string_piece.h #

Patch Set 3 : Rebase. #

Patch Set 4 : Fix win build. #

Patch Set 5 : More win fix. #

Patch Set 6 : More fix. I should have cleaned up my Win7 workstation and tried it locally :( #

Patch Set 7 : More fix. sigh. #

Patch Set 8 : Lots of missing <algorithm> #

Total comments: 4

Patch Set 9 : Missed another UTF8ToUTF16(). #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -42 lines) Patch
M base/crypto/rsa_private_key.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/file_path.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M base/logging.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M base/string_piece.h View 1 4 chunks +4 lines, -8 lines 0 comments Download
M base/utf_string_conversions.h View 1 3 chunks +4 lines, -16 lines 0 comments Download
M base/utf_string_conversions.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -14 lines 0 comments Download
M chrome/browser/autofill/form_group.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/default_apps.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/chunk_range.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/filter_false_positive_perftest.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/protocol_parser.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/service_process_util.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/installer/util/l10n_string_util.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/localized_error.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/mini_installer_test/mini_installer_test_util.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome_frame/test_utils.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M net/base/cookie_monster_perftest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M net/base/net_util_win.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M net/tools/dnssec_chain_verify/dnssec_chain_verify.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/tools/dump_cache/url_to_filename_encoder.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M tools/memory_watcher/memory_watcher.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M webkit/appcache/view_appcache_internals_job.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/glue/webclipboard_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/npapi/plugin_group.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/npapi/test/plugin_arguments_test.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
James Su
9 years, 11 months ago (2011-01-26 21:54:07 UTC) #1
Avi (use Gerrit)
http://codereview.chromium.org/6317016/diff/1/base/utf_string_conversions.h File base/utf_string_conversions.h (right): http://codereview.chromium.org/6317016/diff/1/base/utf_string_conversions.h#newcode12 base/utf_string_conversions.h:12: #include "base/string_piece.h" Why? We don't need it for the ...
9 years, 11 months ago (2011-01-26 21:58:55 UTC) #2
James Su
http://codereview.chromium.org/6317016/diff/1/base/utf_string_conversions.h File base/utf_string_conversions.h (right): http://codereview.chromium.org/6317016/diff/1/base/utf_string_conversions.h#newcode12 base/utf_string_conversions.h:12: #include "base/string_piece.h" On 2011/01/26 21:58:55, Avi wrote: > Why? ...
9 years, 11 months ago (2011-01-26 22:13:30 UTC) #3
Avi (use Gerrit)
I'm not convinced that including that file would help the compiler do implicit conversions. In ...
9 years, 11 months ago (2011-01-26 22:20:06 UTC) #4
James Su
On 2011/01/26 22:20:06, Avi wrote: > I'm not convinced that including that file would help ...
9 years, 11 months ago (2011-01-26 22:33:44 UTC) #5
Avi (use Gerrit)
On 2011/01/26 22:33:44, James Su wrote: > I'd prefer to fix those functions to use ...
9 years, 11 months ago (2011-01-26 22:38:42 UTC) #6
James Su
On 2011/01/26 22:33:44, James Su wrote: > On 2011/01/26 22:20:06, Avi wrote: > > I'm ...
9 years, 11 months ago (2011-01-26 22:41:54 UTC) #7
James Su
Please review again.
9 years, 11 months ago (2011-01-27 00:25:42 UTC) #8
Avi (use Gerrit)
Like. LGTM
9 years, 11 months ago (2011-01-27 00:29:27 UTC) #9
Ilya Sherman
Since you're touching base, please wait for Brett to take a look before committing.
9 years, 11 months ago (2011-01-27 01:17:48 UTC) #10
James Su
On 2011/01/27 01:17:48, Ilya Sherman wrote: > Since you're touching base, please wait for Brett ...
9 years, 11 months ago (2011-01-27 01:19:17 UTC) #11
James Su
Weird that I always get following link error on Win bot. Do you know what's ...
9 years, 11 months ago (2011-01-27 03:41:08 UTC) #12
brettw
Thanks for making the include files have fewer deps. http://codereview.chromium.org/6317016/diff/29001/base/logging.h File base/logging.h (right): http://codereview.chromium.org/6317016/diff/29001/base/logging.h#newcode927 base/logging.h:927: ...
9 years, 11 months ago (2011-01-27 04:10:41 UTC) #13
James Su
http://codereview.chromium.org/6317016/diff/29001/base/logging.h File base/logging.h (right): http://codereview.chromium.org/6317016/diff/29001/base/logging.h#newcode927 base/logging.h:927: extern std::ostream& operator<<(std::ostream& o, const StringPiece& piece); On 2011/01/27 ...
9 years, 11 months ago (2011-01-27 04:19:56 UTC) #14
brettw
http://codereview.chromium.org/6317016/diff/29001/base/logging.h File base/logging.h (right): http://codereview.chromium.org/6317016/diff/29001/base/logging.h#newcode927 base/logging.h:927: extern std::ostream& operator<<(std::ostream& o, const StringPiece& piece); I'm on ...
9 years, 11 months ago (2011-01-27 04:26:13 UTC) #15
James Su
http://codereview.chromium.org/6317016/diff/29001/base/logging.h File base/logging.h (right): http://codereview.chromium.org/6317016/diff/29001/base/logging.h#newcode927 base/logging.h:927: extern std::ostream& operator<<(std::ostream& o, const StringPiece& piece); On 2011/01/27 ...
9 years, 11 months ago (2011-01-27 04:42:04 UTC) #16
James Su
On 2011/01/27 04:42:04, James Su wrote: > http://codereview.chromium.org/6317016/diff/29001/base/logging.h > File base/logging.h (right): > > http://codereview.chromium.org/6317016/diff/29001/base/logging.h#newcode927 ...
9 years, 11 months ago (2011-01-27 04:59:41 UTC) #17
James Su
Ping. On 2011/01/27 04:59:41, James Su wrote: > On 2011/01/27 04:42:04, James Su wrote: > ...
9 years, 11 months ago (2011-01-27 19:32:21 UTC) #18
brettw
9 years, 11 months ago (2011-01-28 00:43:44 UTC) #19
Okay, you convinced me. LGTM

Powered by Google App Engine
This is Rietveld 408576698