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

Issue 7386002: Rename CommandLine::GetCommandLineString(). (Closed)

Created:
9 years, 5 months ago by msw
Modified:
9 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, nkostylev+cc_chromium.org, jam, amit, brettw-cc_chromium.org, kkania, joi+watch-content_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, native-client-reviews_googlegroups.com, davemoore+watch_chromium.org
Visibility:
Public.

Description

Rename CommandLine::GetCommandLineString(). Fix string hackery in net/tools/dump_cache/dump_cache.cc Fix const casts in chrome/installer/util/product.cc and base/process_util_win.cc. BUG=73195 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=93165

Patch Set 1 #

Patch Set 2 : Merge. #

Total comments: 7

Patch Set 3 : Merge, use writable string copies, restore TODO comment and empty string compare. #

Total comments: 9

Patch Set 4 : Address comments and merge. #

Patch Set 5 : Merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -111 lines) Patch
M base/command_line.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M base/command_line.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M base/command_line_unittest.cc View 1 10 chunks +12 lines, -12 lines 0 comments Download
M base/process_util_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M base/process_util_win.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/app/chrome_main.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/about_flags_unittest.cc View 1 2 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_about_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_main_win.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/system/name_value_pairs_parser.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/jumplist_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_test.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/gpu_internals_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/net_internals_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/about_page_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/web_applications/web_app.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/service_process_util_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/service_process_util_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/switch_utils_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 2 3 4 5 chunks +9 lines, -9 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
chrome/installer/util/install_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/installation_validator.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/installation_validator_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/product.cc View 1 2 3 1 chunk +5 lines, -6 lines 0 comments Download
M chrome/installer/util/product_state_unittest.cc View 6 chunks +7 lines, -6 lines 0 comments Download
M chrome/nacl/nacl_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/nacl/nacl_main_platform_delegate_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/service_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/cfproxy_support.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/chrome_frame_automation.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/chrome_launcher_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome_frame/chrome_tab.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cloud_print/virtual_driver/win/install/setup.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/common/sandbox_policy.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/plugin/plugin_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/renderer_main_platform_delegate_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/test/test_server_posix.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/test/test_server_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/tools/dump_cache/dump_cache.cc View 1 2 1 chunk +11 lines, -21 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
msw
PTAL, thanks.
9 years, 5 months ago (2011-07-15 20:27:30 UTC) #1
Evan Martin
Wait a sec, wasn't the plan to remove this? http://codereview.chromium.org/7386002/diff/2001/chrome/browser/about_flags_unittest.cc File chrome/browser/about_flags_unittest.cc (left): http://codereview.chromium.org/7386002/diff/2001/chrome/browser/about_flags_unittest.cc#oldcode254 chrome/browser/about_flags_unittest.cc:254: ...
9 years, 5 months ago (2011-07-15 20:31:32 UTC) #2
msw
Reducing uses and ultimately removing the string generation might be good. I can't commit to ...
9 years, 5 months ago (2011-07-15 20:42:54 UTC) #3
Evan Martin
I guess since you've already written the patch it's fine, but I worry that callers ...
9 years, 5 months ago (2011-07-15 21:05:16 UTC) #4
Evan Martin
and LGTM On Fri, Jul 15, 2011 at 2:05 PM, <evan@chromium.org> wrote: > I guess ...
9 years, 5 months ago (2011-07-15 21:09:54 UTC) #5
Evan Martin
and LGTM On Fri, Jul 15, 2011 at 2:05 PM, <evan@chromium.org> wrote: > I guess ...
9 years, 5 months ago (2011-07-15 21:09:55 UTC) #6
msw
Please take another quick look, as I tried to fixup the const casting in chrome/installer/util/product.cc ...
9 years, 5 months ago (2011-07-18 20:59:32 UTC) #7
Evan Martin
OK
9 years, 5 months ago (2011-07-18 21:15:57 UTC) #8
rvargas (doing something else)
drive by http://codereview.chromium.org/7386002/diff/11001/net/tools/dump_cache/dump_cache.cc File net/tools/dump_cache/dump_cache.cc (right): http://codereview.chromium.org/7386002/diff/11001/net/tools/dump_cache/dump_cache.cc#newcode74 net/tools/dump_cache/dump_cache.cc:74: int LaunchSlave(CommandLine command_line, You should not modify ...
9 years, 5 months ago (2011-07-18 21:33:27 UTC) #9
rvargas (doing something else)
http://codereview.chromium.org/7386002/diff/11001/net/tools/dump_cache/dump_cache.cc File net/tools/dump_cache/dump_cache.cc (right): http://codereview.chromium.org/7386002/diff/11001/net/tools/dump_cache/dump_cache.cc#newcode74 net/tools/dump_cache/dump_cache.cc:74: int LaunchSlave(CommandLine command_line, On 2011/07/18 21:33:27, rvargas wrote: > ...
9 years, 5 months ago (2011-07-18 21:36:33 UTC) #10
grt (UTC plus 2)
Drive-by comments about the installer_util change. http://codereview.chromium.org/7386002/diff/11001/chrome/installer/util/product.cc File chrome/installer/util/product.cc (right): http://codereview.chromium.org/7386002/diff/11001/chrome/installer/util/product.cc#newcode84 chrome/installer/util/product.cc:84: // arguments). Since ...
9 years, 5 months ago (2011-07-19 03:19:34 UTC) #11
msw
Thanks for the drive-by! PTAL. http://codereview.chromium.org/7386002/diff/11001/chrome/installer/util/product.cc File chrome/installer/util/product.cc (right): http://codereview.chromium.org/7386002/diff/11001/chrome/installer/util/product.cc#newcode84 chrome/installer/util/product.cc:84: // arguments). Since we're ...
9 years, 5 months ago (2011-07-19 07:14:26 UTC) #12
grt (UTC plus 2)
installer/util/product.cc changes LGTM. Thanks. On 2011/07/19 07:14:26, msw wrote: > Thanks for the drive-by! PTAL. ...
9 years, 5 months ago (2011-07-19 12:48:08 UTC) #13
Evan Martin
9 years, 5 months ago (2011-07-19 14:35:05 UTC) #14
http://codereview.chromium.org/7386002/diff/11001/chrome/installer/util/produ...
File chrome/installer/util/product.cc (right):

http://codereview.chromium.org/7386002/diff/11001/chrome/installer/util/produ...
chrome/installer/util/product.cc:86: scoped_ptr_malloc<wchar_t>
writable_command_line_string(
Oh yeah, should have remembered this earlier:
http://codesearch.google.com/codesearch#OAMlx_jo-ck/src/base/string_util.h&ex...

Powered by Google App Engine
This is Rietveld 408576698