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

Issue 178193033: Android: support http referrers for context menu navigations. (Closed)

Created:
6 years, 9 months ago by ppi
Modified:
6 years, 9 months ago
Reviewers:
Ted C
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Android: support http referrers for context menu navigations. This patch provides the support needed for setting http referrers on URL loads triggered from the context menu: - adds Referrer.java holder corresponding to the native content::Referrer - ContextMenuParams.java now holds a Referrer field set (along with sanitization) by ContextMenuHelper - ContextMenuItemDelegate methods that trigger new navigations accept a Referrer parameter (save for OpenInNewIncognitoTab, as we drop the referrer in this case) - LoadUrlParams.java also gets a Referrer field, so that embedders can set it in their ContextMenuItemDelegate implementations BUG=340295 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255370

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address Ted's comments. #

Patch Set 3 : Rebase. #

Patch Set 4 : Fix TestShellTab compile error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -23 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuItemDelegate.java View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuParams.java View 5 chunks +18 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/EmptyChromeContextMenuItemDelegate.java View 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/TestShellTab.java View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/android/context_menu_helper.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/context_menu_helper.cc View 1 3 chunks +19 lines, -1 line 0 comments Download
M chrome/test/android/javatests/src/org/chromium/chrome/test/util/TestHttpServerClient.java View 1 chunk +10 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/LoadUrlParams.java View 4 chunks +21 lines, -5 lines 0 comments Download
A content/public/android/java/src/org/chromium/content_public/Referrer.java View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
ppi
Please take a look.
6 years, 9 months ago (2014-03-05 19:59:30 UTC) #1
ppi
https://codereview.chromium.org/178193033/diff/1/chrome/browser/ui/android/context_menu_helper.cc File chrome/browser/ui/android/context_menu_helper.cc (right): https://codereview.chromium.org/178193033/diff/1/chrome/browser/ui/android/context_menu_helper.cc#newcode100 chrome/browser/ui/android/context_menu_helper.cc:100: // TODO(ppi): consider extracting into a helper method in ...
6 years, 9 months ago (2014-03-05 20:01:45 UTC) #2
Ted C
lgtm https://codereview.chromium.org/178193033/diff/1/chrome/browser/ui/android/context_menu_helper.cc File chrome/browser/ui/android/context_menu_helper.cc (right): https://codereview.chromium.org/178193033/diff/1/chrome/browser/ui/android/context_menu_helper.cc#newcode100 chrome/browser/ui/android/context_menu_helper.cc:100: // TODO(ppi): consider extracting into a helper method ...
6 years, 9 months ago (2014-03-05 22:20:53 UTC) #3
ppi
Thanks! https://codereview.chromium.org/178193033/diff/1/chrome/browser/ui/android/context_menu_helper.cc File chrome/browser/ui/android/context_menu_helper.cc (right): https://codereview.chromium.org/178193033/diff/1/chrome/browser/ui/android/context_menu_helper.cc#newcode100 chrome/browser/ui/android/context_menu_helper.cc:100: // TODO(ppi): consider extracting into a helper method ...
6 years, 9 months ago (2014-03-06 11:41:03 UTC) #4
ppi
The CQ bit was checked by ppi@chromium.org
6 years, 9 months ago (2014-03-06 11:41:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/178193033/40001
6 years, 9 months ago (2014-03-06 11:42:25 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 11:44:11 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 9 months ago (2014-03-06 11:44:11 UTC) #8
ppi
The CQ bit was checked by ppi@chromium.org
6 years, 9 months ago (2014-03-06 11:44:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/178193033/40001
6 years, 9 months ago (2014-03-06 11:44:46 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 12:42:56 UTC) #11
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=121188
6 years, 9 months ago (2014-03-06 12:42:57 UTC) #12
ppi
The CQ bit was checked by ppi@chromium.org
6 years, 9 months ago (2014-03-06 14:22:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/178193033/60001
6 years, 9 months ago (2014-03-06 14:24:48 UTC) #14
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 16:49:22 UTC) #15
Message was sent while issue was closed.
Change committed as 255370

Powered by Google App Engine
This is Rietveld 408576698