| Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java
|
| index e264a259b7b17f605a34856c9d9ccd6b0c67a776..1217ba1177147caca3844c06e0dc6f56108c079c 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabAppMenuPropertiesDelegate.java
|
| @@ -16,6 +16,7 @@ import org.chromium.base.BuildInfo;
|
| import org.chromium.base.VisibleForTesting;
|
| import org.chromium.chrome.R;
|
| import org.chromium.chrome.browser.ChromeActivity;
|
| +import org.chromium.chrome.browser.UrlConstants;
|
| import org.chromium.chrome.browser.appmenu.AppMenuPropertiesDelegate;
|
| import org.chromium.chrome.browser.download.DownloadUtils;
|
| import org.chromium.chrome.browser.firstrun.FirstRunStatus;
|
| @@ -133,6 +134,13 @@ public class CustomTabAppMenuPropertiesDelegate extends AppMenuPropertiesDelegat
|
|
|
| downloadItem.setEnabled(DownloadUtils.isAllowedToDownloadPage(currentTab));
|
|
|
| + String url = currentTab.getUrl();
|
| + boolean isChromeScheme = url.startsWith(UrlConstants.CHROME_SCHEME)
|
| + || url.startsWith(UrlConstants.CHROME_NATIVE_SCHEME);
|
| + if (isChromeScheme) {
|
| + addToHomeScreenItem.setVisible(false);
|
| + }
|
| +
|
| // Add custom menu items. Make sure they are only added once.
|
| if (!mIsCustomEntryAdded) {
|
| mIsCustomEntryAdded = true;
|
|
|