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 e122d1d9e6ded00acc4183c64c0894f3a5a69893..d59543df6067dd5499d5d89eb6949880ebc8ef44 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
|
|
@@ -243,6 +243,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 {
|
|
@@ -299,7 +300,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)
|
|
@@ -532,6 +533,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));
|
|
}
|