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

Issue 2779893005: Continue to clean c_str() calls. (Closed)

Created:
3 years, 8 months ago by Andrey Kraynov
Modified:
3 years, 8 months ago
Reviewers:
jam, grt (UTC plus 2)
CC:
chromium-reviews, msramek+watch_chromium.org, skanuj+watch_chromium.org, chromoting-reviews_chromium.org, dcheng, pennymac+watch_chromium.org, markusheintz_, jdonnelly+watch_chromium.org, melevin+watch_chromium.org, grt+watch_chromium.org, samuong+watch_chromium.org, jam, raymes+watch_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, jfweitz+watch_chromium.org, pam+watch_chromium.org, piman+watch_chromium.org, Jered, wfh+watch_chromium.org, donnd+watch_chromium.org, David Black, jln+watch_chromium.org, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, pfeldman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Continue to clean c_str() calls. When a result of |string.c_str()| expression is passed to a function that takes a StringPiece, it will measure the length of the string using strlen() function. This is useless operation because we know the length already. No behaviour changes. BUG=679479 Review-Url: https://codereview.chromium.org/2779893005 Cr-Commit-Position: refs/heads/master@{#460501} Committed: https://chromium.googlesource.com/chromium/src/+/4179f17c901660139200edfcc751c2a7d9b5d03e

Patch Set 1 #

Patch Set 2 : Revert changes in font_service_app.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -62 lines) Patch
M chrome/browser/prefs/pref_metrics_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_avatar_icon_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/supervised_user/experimental/safe_search_url_reporter.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_window_state.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/chrome_pages.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/instant_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pepper_flash.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/trace_event_args_whitelist.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/user_experiment.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/chromedriver/element_util.cc View 1 chunk +1 line, -2 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/dom_distiller/content/browser/dom_distiller_viewer_source.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/nacl/zygote/nacl_fork_delegate_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/omnibox/browser/builtin_provider.cc View 1 chunk +1 line, -2 lines 0 comments Download
M components/omnibox/browser/omnibox_edit_model.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_core.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M components/prefs/pref_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/signin/core/browser/about_signin_internals.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M components/sync_preferences/pref_model_associator.cc View 5 chunks +6 lines, -7 lines 0 comments Download
M components/sync_preferences/synced_pref_change_registrar.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/translate/core/browser/translate_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/webcrypto/algorithms/test_helpers.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/devtools/devtools_http_handler.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/gpu/compositor_util.cc View 1 chunk +1 line, -2 lines 0 comments Download
M printing/backend/print_backend_chromeos.cc View 1 chunk +1 line, -1 line 0 comments Download
M printing/backend/print_backend_cups.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/client/jni/jni_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/register_support_host_request.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/jingle_session.cc View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/suid/client/setuid_sandbox_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/clipboard/clipboard_android.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
Andrey Kraynov
Hi! This a final part of cleaning these c_str() calls from the codebase. CL consists ...
3 years, 8 months ago (2017-03-28 21:15:26 UTC) #2
grt (UTC plus 2)
chrome/installer/util lgtm
3 years, 8 months ago (2017-03-29 08:54:54 UTC) #4
jam
lgtm
3 years, 8 months ago (2017-03-29 14:50:36 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2779893005/1
3 years, 8 months ago (2017-03-29 15:02:12 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/336347)
3 years, 8 months ago (2017-03-29 15:15:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2779893005/20001
3 years, 8 months ago (2017-03-29 17:57:40 UTC) #12
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 19:51:00 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/4179f17c901660139200edfcc751...

Powered by Google App Engine
This is Rietveld 408576698