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

Issue 3076013: Move ASCIIToWide and ASCIIToUTF16 to utf_string_conversions.h. I've found it... (Closed)

Created:
10 years, 4 months ago by brettw
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., kuchhal
Visibility:
Public.

Description

Move ASCIIToWide and ASCIIToUTF16 to utf_string_conversions.h. I've found it weird that UTF8ToWide is in utf_string_conversions, but ASCIIToWide is in string_util.h. This should help some dependencies since string_util changes much more frequently than utf_string_conversions and fewer files will now need string_utils. Since this requires a lot of changes, this keeps a forward-declaration in string_util so I can update the entire project incrementally. This change updates base and net only. I removed some includes of string_util from header files in net. In particular, url_request_context which involved creating a new .cc file to implement a function (already virtual so there's no speed penalty). It turns out a lot of files were getting string_util from this include, so I had to update a bunch of random files to now explicitly include string_util.h TEST=it compiles BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54456

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -37 lines) Patch
M base/command_line.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/native_library_linux.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M base/string_util.h View 1 2 3 1 chunk +12 lines, -3 lines 0 comments Download
M base/string_util.cc View 2 chunks +1 line, -10 lines 0 comments Download
M base/utf_string_conversions.h View 1 2 3 1 chunk +14 lines, -0 lines 1 comment Download
M base/utf_string_conversions.cc View 1 2 3 2 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/importer/toolbar_importer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/connection_tester.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/preconnect.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/view_http_cache_job_factory.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/installer/util/version.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/base/cookie_store.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M net/base/net_log.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/transport_security_state.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/ftp/ftp_directory_listing_parser_ls.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_netware.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M net/http/http_auth_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_auth_filter.h View 1 chunk +0 lines, -1 line 0 comments Download
M net/http/http_auth_filter_win.h View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_auth_handler_negotiate.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M net/net.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M net/ocsp/nss_ocsp.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/socket_stream/socket_stream.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_context.h View 2 chunks +1 line, -4 lines 0 comments Download
M net/url_request/url_request_ftp_job.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/url_request/url_request_unittest.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
brettw
10 years, 4 months ago (2010-07-28 22:07:09 UTC) #1
Peter Kasting
http://codereview.chromium.org/3076013/diff/24001/25001 File base/command_line.cc (right): http://codereview.chromium.org/3076013/diff/24001/25001#newcode24 base/command_line.cc:24: //#include "base/string_piece.h" Nit: This line should either be in ...
10 years, 4 months ago (2010-07-28 22:19:32 UTC) #2
brettw
All addressed, new snap up.
10 years, 4 months ago (2010-07-28 22:44:15 UTC) #3
Peter Kasting
10 years, 4 months ago (2010-07-28 22:49:34 UTC) #4
You still didn't svn add url_request_context.cc.  Without this the change won't
compile.

LGTM otherwise.

http://codereview.chromium.org/3076013/diff/15004/33008
File base/utf_string_conversions.h (right):

http://codereview.chromium.org/3076013/diff/15004/33008#newcode1
base/utf_string_conversions.h:1: // Copyright (c) 2009 The Chromium Authors. All
rights reserved.
Nit: 2010

Powered by Google App Engine
This is Rietveld 408576698