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

Issue 185133005: Move referrer stripping into GURL::GetAsReferrer(). (Closed)

Created:
6 years, 9 months ago by ppi
Modified:
6 years, 9 months ago
Reviewers:
Ted C, brettw, gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, jochen (gone - plz use gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move referrer stripping into GURL::GetAsReferrer(). This patch moves the code that removes username, password and ref parts of the url from http referrers into GURL::GetAsReferrer(). BUG=340295 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258392

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase. #

Patch Set 3 : Address Brett's comments. #

Patch Set 4 : Switch over the Android ContextMenuHelper. #

Total comments: 2

Patch Set 5 : Rebase. #

Patch Set 6 : Address Gavin's comments. #

Patch Set 7 : Restore the behavior of setting the referrer when it's invalid in URLRequest::SetReferrer. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -43 lines) Patch
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 3 4 1 chunk +4 lines, -14 lines 0 comments Download
M chrome/browser/ui/android/context_menu_helper.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/android/context_menu_helper.cc View 1 2 3 2 chunks +2 lines, -15 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 1 chunk +4 lines, -11 lines 0 comments Download
M url/gurl.h View 1 chunk +5 lines, -0 lines 0 comments Download
M url/gurl.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M url/gurl_unittest.cc View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
ppi
Hi Brett, In order to get http referrers working for context-menu navigations on Android I ...
6 years, 9 months ago (2014-03-04 17:11:57 UTC) #1
brettw
lgtm https://codereview.chromium.org/185133005/diff/1/url/gurl.cc File url/gurl.cc (right): https://codereview.chromium.org/185133005/diff/1/url/gurl.cc#newcode325 url/gurl.cc:325: (!has_ref() && !has_username() && !has_password())) You can just ...
6 years, 9 months ago (2014-03-07 18:08:10 UTC) #2
ppi
Thanks, Brett! Adding Ted for chrome/browser/ui/android and Gavin for net/. https://codereview.chromium.org/185133005/diff/1/url/gurl.cc File url/gurl.cc (right): https://codereview.chromium.org/185133005/diff/1/url/gurl.cc#newcode325 ...
6 years, 9 months ago (2014-03-13 19:33:24 UTC) #3
Ted C
android - lgtm
6 years, 9 months ago (2014-03-13 20:09:01 UTC) #4
Ted C
android - lgtm
6 years, 9 months ago (2014-03-13 20:09:02 UTC) #5
gavinp
LGTM, although please consider my suggestion about the comment. https://codereview.chromium.org/185133005/diff/50001/net/url_request/url_request.cc File net/url_request/url_request.cc (right): https://codereview.chromium.org/185133005/diff/50001/net/url_request/url_request.cc#newcode611 net/url_request/url_request.cc:611: ...
6 years, 9 months ago (2014-03-17 10:51:35 UTC) #6
ppi
Thanks! https://codereview.chromium.org/185133005/diff/50001/net/url_request/url_request.cc File net/url_request/url_request.cc (right): https://codereview.chromium.org/185133005/diff/50001/net/url_request/url_request.cc#newcode611 net/url_request/url_request.cc:611: // Ensure that we do not send URL ...
6 years, 9 months ago (2014-03-20 10:50:55 UTC) #7
ppi
The CQ bit was checked by ppi@chromium.org
6 years, 9 months ago (2014-03-20 10:52:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/185133005/90001
6 years, 9 months ago (2014-03-20 10:52:43 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 12:19:50 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-20 12:19:50 UTC) #11
ppi
The CQ bit was checked by ppi@chromium.org
6 years, 9 months ago (2014-03-20 12:20:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/185133005/90001
6 years, 9 months ago (2014-03-20 12:20:42 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 12:27:28 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 9 months ago (2014-03-20 12:27:28 UTC) #15
ppi
The CQ bit was checked by ppi@chromium.org
6 years, 9 months ago (2014-03-20 12:31:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/185133005/90001
6 years, 9 months ago (2014-03-20 12:31:39 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 13:47:49 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-20 13:47:50 UTC) #19
ppi
The CQ bit was checked by ppi@chromium.org
6 years, 9 months ago (2014-03-20 14:29:47 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/185133005/110001
6 years, 9 months ago (2014-03-20 14:30:10 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 18:17:00 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=285158
6 years, 9 months ago (2014-03-20 18:17:00 UTC) #23
ppi
The CQ bit was checked by ppi@chromium.org
6 years, 9 months ago (2014-03-20 19:06:32 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/185133005/110001
6 years, 9 months ago (2014-03-20 19:13:46 UTC) #25
commit-bot: I haz the power
6 years, 9 months ago (2014-03-20 20:27:26 UTC) #26
Message was sent while issue was closed.
Change committed as 258392

Powered by Google App Engine
This is Rietveld 408576698