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

Issue 2605283002: [Android] Change items shown in context meanu for mailto link (Closed)

Created:
3 years, 11 months ago by ltian
Modified:
3 years, 11 months ago
CC:
chromium-reviews, lizeb+watch-custom-tabs_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Change items shown in context meanu for mailto link Current items (Open in new tab, Open in incognito tab, Copy link address, Copy link text) shown in the context menu for mailto tag link do not make sense. Update the items shown in the context menu when long pressing a mailto link. The items include: 1. Send message: same behavior as clicking the link which will navigate to default mail app to send an email with parsed info from url. 2. Add to contacts: - If no email address in the mailto, hid the menu item - If more than one email addresses is present, select the first one for adding to the contacts 3. Copy: copy all the email addresses (everything between mailto: and ?) BUG=389056 Review-Url: https://codereview.chromium.org/2605283002 Cr-Commit-Position: refs/heads/master@{#442086} Committed: https://chromium.googlesource.com/chromium/src/+/494e85acc477fced01f74b404f4d1c1c0a81a9fe

Patch Set 1 #

Total comments: 13

Patch Set 2 : Update based on Ted's comments. #

Total comments: 10

Patch Set 3 : Update based on Ted's comments. #

Total comments: 4

Patch Set 4 : Update based on Ted's comments. #

Patch Set 5 : Update label for send email action to clearly state send email instead of send message. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -10 lines) Patch
M chrome/android/java/res/menu/chrome_context_menu.xml View 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java View 1 2 3 4 4 chunks +21 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/TabContextMenuItemDelegate.java View 1 2 3 4 chunks +36 lines, -0 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/ContextMenuTest.java View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java View 5 chunks +48 lines, -2 lines 0 comments Download
M chrome/test/data/android/contextmenu/context_menu_test.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/android/google.html View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (21 generated)
ltian
tedchoc@chromium.org: can you take a look of my changes in this CL? Thanks!
3 years, 11 months ago (2016-12-29 17:17:17 UTC) #5
ltian
tedchoc@chromium.org: can you take a look of my changes in this CL? Thanks!
3 years, 11 months ago (2016-12-29 17:18:54 UTC) #7
Ted C
https://codereview.chromium.org/2605283002/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/2605283002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode222 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:222: if (MailTo.parse(params.getLinkUrl()).getTo() == null) { I would use !TextUtils.isEmpty(...) ...
3 years, 11 months ago (2017-01-03 23:19:24 UTC) #8
ltian
https://codereview.chromium.org/2605283002/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/2605283002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode222 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:222: if (MailTo.parse(params.getLinkUrl()).getTo() == null) { On 2017/01/03 23:19:24, Ted ...
3 years, 11 months ago (2017-01-04 03:07:19 UTC) #13
Ted C
Were you able to test with the apps disabled? Wondering if that works and you ...
3 years, 11 months ago (2017-01-04 18:40:08 UTC) #14
ltian
On 2017/01/04 18:40:08, Ted C wrote: > Were you able to test with the apps ...
3 years, 11 months ago (2017-01-04 20:39:40 UTC) #15
ltian
https://codereview.chromium.org/2605283002/diff/20001/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/2605283002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java#newcode228 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java:228: if (TextUtils.isEmpty(MailTo.parse(params.getLinkUrl()).getTo())) { On 2017/01/04 18:40:08, Ted C wrote: ...
3 years, 11 months ago (2017-01-04 20:46:59 UTC) #16
Ted C
lgtm w/ a couple last comments. You'll need to get an owners approval for histograms.xml ...
3 years, 11 months ago (2017-01-04 21:18:50 UTC) #17
ltian
ericwilligers@chromium.org: Can you take a look of my changes for histograms.xml? https://codereview.chromium.org/2605283002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java (right): ...
3 years, 11 months ago (2017-01-04 23:18:57 UTC) #19
Eric Willigers
+isherman for histogram changes.
3 years, 11 months ago (2017-01-04 23:45:16 UTC) #23
Eric Willigers
3 years, 11 months ago (2017-01-04 23:46:02 UTC) #25
Eric Willigers
On 2017/01/04 23:45:16, Eric Willigers wrote: > +isherman for histogram changes. +jwd as isherman is ...
3 years, 11 months ago (2017-01-04 23:46:45 UTC) #26
jwd
histograms LGTM
3 years, 11 months ago (2017-01-06 15:11:58 UTC) #29
ltian
On 2017/01/06 15:11:58, jwd wrote: > histograms LGTM @ericwilligers: could you also review the histogram ...
3 years, 11 months ago (2017-01-06 19:10:07 UTC) #30
ltian
On 2017/01/06 19:10:07, ltian wrote: > On 2017/01/06 15:11:58, jwd wrote: > > histograms LGTM ...
3 years, 11 months ago (2017-01-06 21:58:56 UTC) #31
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/2605283002/80001
3 years, 11 months ago (2017-01-06 21:59:33 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/494e85acc477fced01f74b404f4d1c1c0a81a9fe
3 years, 11 months ago (2017-01-06 23:10:17 UTC) #37
Ilya Sherman
3 years, 11 months ago (2017-01-07 00:46:48 UTC) #39
Message was sent while issue was closed.
histograms.xml lgtm

Powered by Google App Engine
This is Rietveld 408576698