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

Issue 2781443005: Remove unnecessary calls to std::basic_string<>::c_str() (Closed)

Created:
3 years, 8 months ago by Andrey Kraynov
Modified:
3 years, 8 months ago
Reviewers:
lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unnecessary calls to std::basic_string<>::c_str() It's better not to pass a |const char*| to function which takes a std::string or base::StringPiece object to avoid calling strlen() and string copying. BUG=679479 Review-Url: https://codereview.chromium.org/2781443005 Cr-Commit-Position: refs/heads/master@{#460201} Committed: https://chromium.googlesource.com/chromium/src/+/020e2a0cb30f9e65d7e52c620a73e0806bcd7109

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -13 lines) Patch
M chrome/browser/extensions/api/autotest_private/autotest_private_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/messaging/native_process_launcher_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/preference/preference_api.cc View 7 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/preference/preference_helpers.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (9 generated)
Andrey Kraynov
Hi! This CL is a continuation of my previous patch, https://codereview.chromium.org/2624583002/ Could you take a ...
3 years, 8 months ago (2017-03-28 17:33:47 UTC) #2
asargent_no_longer_on_chrome
(removing myself as reviewer and punting to lazyboy since I'm no longer working on chrome)
3 years, 8 months ago (2017-03-28 17:45:07 UTC) #4
lazyboy
lgtm
3 years, 8 months ago (2017-03-28 18:00:10 UTC) #7
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/2781443005/1
3 years, 8 months ago (2017-03-28 18:27:04 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/376591)
3 years, 8 months ago (2017-03-28 18:40:15 UTC) #11
Andrey Kraynov
On 2017/03/28 18:40:15, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 8 months ago (2017-03-28 19:40:56 UTC) #12
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/2781443005/1
3 years, 8 months ago (2017-03-28 19:41:31 UTC) #14
commit-bot: I haz the power
3 years, 8 months ago (2017-03-28 20:20:07 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/020e2a0cb30f9e65d7e52c620a73...

Powered by Google App Engine
This is Rietveld 408576698