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

Issue 2725473002: [Android] 'Open in new Chrome (incognito) tab under context menu does not work for images and videos (Closed)

Created:
3 years, 9 months ago by ltian
Modified:
3 years, 9 months ago
Reviewers:
Yusuf, gone
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] 'Open in new Chrome (incognito) tab under context menu does not work for images and videos For links of images and videos, the options 'Open in new Chrome tab' and 'Open in Chrome incognito tab' under context menu do not work, because the linkUrl is empty. To fix this, check whether the link is video or image, if so, pass the srcUrl instead of linkUrl. Also for downloaded images and videos, the context menu should be disabled because current options ('Share' and 'Download image/video') could be achieved through overflow menu. To fix this, check if the srcUrl starts with 'file://'. BUG=696417 Review-Url: https://codereview.chromium.org/2725473002 Cr-Commit-Position: refs/heads/master@{#455181} Committed: https://chromium.googlesource.com/chromium/src/+/2fc04cd1fea6d3c1fc5d8e1bd5fa2528b2a462d8

Patch Set 1 #

Total comments: 4

Patch Set 2 : Update base on Yusuf's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -2 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java View 1 3 chunks +17 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuParams.java View 1 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
ltian
dfalcantara@chromium.org: could you take a look of my change in this CL? Thanks!
3 years, 9 months ago (2017-02-28 00:03:20 UTC) #6
gone
-> Yusuf since he knows the menu code ramifications better than I do.
3 years, 9 months ago (2017-02-28 00:41:04 UTC) #8
Yusuf
https://codereview.chromium.org/2725473002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (right): https://codereview.chromium.org/2725473002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode437 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:437: private String getUrl(ContextMenuParams params) { maybe a short comment ...
3 years, 9 months ago (2017-03-06 19:17:52 UTC) #9
ltian
https://codereview.chromium.org/2725473002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (right): https://codereview.chromium.org/2725473002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode437 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:437: private String getUrl(ContextMenuParams params) { On 2017/03/06 19:17:51, Yusuf ...
3 years, 9 months ago (2017-03-06 20:22:43 UTC) #10
Yusuf
lgtm
3 years, 9 months ago (2017-03-07 00:59:34 UTC) #11
gone
lgtm
3 years, 9 months ago (2017-03-07 04:36:39 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/2725473002/20001
3 years, 9 months ago (2017-03-07 18:51:14 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 19:52:30 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2fc04cd1fea6d3c1fc5d8e1bd5fa...

Powered by Google App Engine
This is Rietveld 408576698