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

Issue 1959933002: Add FormatOriginForSecurityDisplay which takes a const url::Origin& origin (Closed)

Created:
4 years, 7 months ago by juncai
Modified:
4 years, 7 months ago
Reviewers:
palmer, brettw
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add FormatOriginForSecurityDisplay which takes a const url::Origin& origin There is a FormatUrlForSecurityDisplay which takes a const GURL&. It is better to add a FormatOriginForSecurityDisplay which takes a const url::Origin&. BUG=610147 Committed: https://crrev.com/cb63cac018227ec356e3d58e3c78e26761e76f26 Cr-Commit-Position: refs/heads/master@{#393410}

Patch Set 1 : added FormatUrlForSecurityDisplay which takes a const url::Origin #

Total comments: 4

Patch Set 2 : added test code #

Total comments: 7

Patch Set 3 : address brettw@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -90 lines) Patch
M components/url_formatter/elide_url.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M components/url_formatter/elide_url.cc View 1 2 4 chunks +37 lines, -9 lines 0 comments Download
M components/url_formatter/elide_url_unittest.cc View 1 6 chunks +201 lines, -81 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
juncai
Please take a look. This is the first try, and I want to make sure ...
4 years, 7 months ago (2016-05-08 19:26:56 UTC) #2
palmer
https://codereview.chromium.org/1959933002/diff/1/components/url_formatter/elide_url.cc File components/url_formatter/elide_url.cc (right): https://codereview.chromium.org/1959933002/diff/1/components/url_formatter/elide_url.cc#newcode130 components/url_formatter/elide_url.cc:130: bool ShouldShowScheme(const url::Origin& origin, Rather than (essentially) duplicate this ...
4 years, 7 months ago (2016-05-09 19:40:49 UTC) #3
juncai
https://codereview.chromium.org/1959933002/diff/1/components/url_formatter/elide_url.cc File components/url_formatter/elide_url.cc (right): https://codereview.chromium.org/1959933002/diff/1/components/url_formatter/elide_url.cc#newcode130 components/url_formatter/elide_url.cc:130: bool ShouldShowScheme(const url::Origin& origin, On 2016/05/09 19:40:48, palmer wrote: ...
4 years, 7 months ago (2016-05-10 02:16:58 UTC) #4
palmer
lgtm
4 years, 7 months ago (2016-05-10 22:26:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1959933002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1959933002/20001
4 years, 7 months ago (2016-05-10 22:29:55 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/180796)
4 years, 7 months ago (2016-05-10 22:43:51 UTC) #9
juncai
brettw@chromium.org: Please take a look at //components/url_formatter/elide_url_unittest.cc
4 years, 7 months ago (2016-05-10 22:49:21 UTC) #11
brettw
lgtm https://codereview.chromium.org/1959933002/diff/20001/components/url_formatter/elide_url.cc File components/url_formatter/elide_url.cc (right): https://codereview.chromium.org/1959933002/diff/20001/components/url_formatter/elide_url.cc#newcode359 components/url_formatter/elide_url.cc:359: const std::string& scheme = origin.scheme(); While we're changing ...
4 years, 7 months ago (2016-05-12 16:47:24 UTC) #12
juncai
https://codereview.chromium.org/1959933002/diff/20001/components/url_formatter/elide_url.cc File components/url_formatter/elide_url.cc (right): https://codereview.chromium.org/1959933002/diff/20001/components/url_formatter/elide_url.cc#newcode359 components/url_formatter/elide_url.cc:359: const std::string& scheme = origin.scheme(); On 2016/05/12 16:47:24, brettw ...
4 years, 7 months ago (2016-05-12 17:29:06 UTC) #13
brettw
Still LGTM https://codereview.chromium.org/1959933002/diff/20001/components/url_formatter/elide_url.cc File components/url_formatter/elide_url.cc (right): https://codereview.chromium.org/1959933002/diff/20001/components/url_formatter/elide_url.cc#newcode379 components/url_formatter/elide_url.cc:379: const std::string& scheme = origin.scheme(); On 2016/05/12 ...
4 years, 7 months ago (2016-05-12 23:22:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1959933002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1959933002/40001
4 years, 7 months ago (2016-05-13 00:38:32 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-13 00:42:10 UTC) #18
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 00:44:00 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cb63cac018227ec356e3d58e3c78e26761e76f26
Cr-Commit-Position: refs/heads/master@{#393410}

Powered by Google App Engine
This is Rietveld 408576698