30 lines
1.8 KiB
Diff
30 lines
1.8 KiB
Diff
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java
|
|
index de16d9ce6ce13c93f1d72137a7e2812947e6a0fb..7f4d0c29e08432253cc712306aecd9d22d44bf63 100644
|
|
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java
|
|
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java
|
|
@@ -227,6 +227,7 @@ public class ChromeContextMenuPopulator implements ContextMenuPopulator {
|
|
Action.EXIT_PICTURE_IN_PICTURE,
|
|
Action.OPEN_IN_INCOGNITO_WINDOW,
|
|
Action.VIEW_PAGE_SOURCE,
|
|
+ Action.COPY_CLEAN_LINK,
|
|
})
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
public @interface Action {
|
|
@@ -283,7 +284,7 @@ public class ChromeContextMenuPopulator implements ContextMenuPopulator {
|
|
int EXIT_PICTURE_IN_PICTURE = 50;
|
|
int OPEN_IN_INCOGNITO_WINDOW = 51;
|
|
int VIEW_PAGE_SOURCE = 52;
|
|
- int NUM_ENTRIES = 53;
|
|
+ int COPY_CLEAN_LINK = 53;int NUM_ENTRIES = 54;
|
|
}
|
|
|
|
// LINT.ThenChange(/tools/metrics/histograms/enums.xml:ContextMenuOptionAndroid)
|
|
@@ -503,6 +504,7 @@ public class ChromeContextMenuPopulator implements ContextMenuPopulator {
|
|
if (!MailTo.isMailTo(mParams.getLinkUrl().getSpec())
|
|
&& !UrlUtilities.isTelScheme(mParams.getLinkUrl())) {
|
|
linkGroup.add(createListItem(Item.COPY_LINK_ADDRESS));
|
|
+ linkGroup.add(createListItem(Item.COPY_CLEAN_LINK));
|
|
if (!mParams.getLinkText().trim().isEmpty() && !mParams.isImage()) {
|
|
linkGroup.add(createListItem(Item.COPY_LINK_TEXT));
|
|
}
|