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

Issue 2956643002: Add GURL::HostNoBracketsPiece() (Closed)

Created:
3 years, 6 months ago by Adam Rice
Modified:
3 years, 5 months ago
Reviewers:
brettw
CC:
chromium-reviews, cbentzel+watch_chromium.org, creis+watch_chromium.org, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, nasko+codewatch_chromium.org, jam, sebsg+paymentswatch_chromium.org, rouslan+payments_chromium.org, darin-cc_chromium.org, mahmadi+paymentswatch_chromium.org, johnchen+watch_chromium.org, net-reviews_chromium.org, gogerald+paymentswatch_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add GURL::HostNoBracketsPiece() In several places GURL::HostNoBrackets() is used as an argument to a function that only requires a StringPiece. To avoid this unnecessary string copy, add a HostNoBracketsPiece() variant in line with the existing host_piece() variant. This CL also changes calls to HostNoBrackets() to HostNoBracketsPiece() where it is simple and useful. BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2956643002 Cr-Commit-Position: refs/heads/master@{#483962} Committed: https://chromium.googlesource.com/chromium/src/+/1c0de2ff74a1874e1fcfc12925694e8fd39af261

Patch Set 1 #

Total comments: 2

Patch Set 2 : Simplify test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -14 lines) Patch
M chrome/browser/installable/installable_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/chromedriver/net/websocket.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/payments/content/origin_security_checker.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/mixed_content_navigation_throttle.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/origin_util.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M ios/web/public/origin_util.mm View 1 chunk +1 line, -2 lines 0 comments Download
M net/proxy/proxy_bypass_rules.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_http_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M url/gurl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M url/gurl.cc View 1 chunk +5 lines, -1 line 0 comments Download
M url/gurl_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
Adam Rice
+brettw for //url.
3 years, 5 months ago (2017-06-26 08:33:09 UTC) #7
brettw
lgtm https://codereview.chromium.org/2956643002/diff/1/url/gurl_unittest.cc File url/gurl_unittest.cc (right): https://codereview.chromium.org/2956643002/diff/1/url/gurl_unittest.cc#newcode566 url/gurl_unittest.cc:566: class GURLHostTest : public ::testing::Test { This is ...
3 years, 5 months ago (2017-06-30 19:33:14 UTC) #8
Adam Rice
https://codereview.chromium.org/2956643002/diff/1/url/gurl_unittest.cc File url/gurl_unittest.cc (right): https://codereview.chromium.org/2956643002/diff/1/url/gurl_unittest.cc#newcode566 url/gurl_unittest.cc:566: class GURLHostTest : public ::testing::Test { On 2017/06/30 19:33:14, ...
3 years, 5 months ago (2017-07-03 04:51:51 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/2956643002/20001
3 years, 5 months ago (2017-07-03 05:30:00 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/419786)
3 years, 5 months ago (2017-07-03 07:15:53 UTC) #14
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/2956643002/20001
3 years, 5 months ago (2017-07-03 07:35:18 UTC) #16
commit-bot: I haz the power
3 years, 5 months ago (2017-07-03 08:22:01 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/1c0de2ff74a1874e1fcfc1292569...

Powered by Google App Engine
This is Rietveld 408576698