| 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 0948e20af680badaed2e89eece1d073fa412ac78..b4751144b52902aa0915b7ec7b29684f6b53f72a 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.ChromeFeatureList;
|
| import org.chromium.chrome.browser.appmenu.AppMenuPropertiesDelegate;
|
| import org.chromium.chrome.browser.share.ShareHelper;
|
| import org.chromium.chrome.browser.tab.Tab;
|
| @@ -104,11 +105,18 @@ public class CustomTabAppMenuPropertiesDelegate extends AppMenuPropertiesDelegat
|
| }
|
|
|
| MenuItem openInChromeItem = menu.findItem(R.id.open_in_browser_id);
|
| - try {
|
| - openInChromeItem.setTitle(mDefaultBrowserFetcher.get());
|
| - } catch (InterruptedException | ExecutionException e) {
|
| - openInChromeItem.setTitle(
|
| - mActivity.getString(R.string.menu_open_in_product_default));
|
| + MenuItem readItLaterItem = menu.findItem(R.id.read_it_later_id);
|
| + if (ChromeFeatureList.isEnabled("ReadItLaterInMenu")) {
|
| + // In the read-it-later experiment, Chrome will be the only browser to open the link
|
| + openInChromeItem.setTitle(R.string.menu_open_in_chrome);
|
| + } else {
|
| + readItLaterItem.setVisible(false);
|
| + try {
|
| + openInChromeItem.setTitle(mDefaultBrowserFetcher.get());
|
| + } catch (InterruptedException | ExecutionException e) {
|
| + openInChromeItem.setTitle(
|
| + mActivity.getString(R.string.menu_open_in_product_default));
|
| + }
|
| }
|
|
|
| // Add custom menu items. Make sure they are only added once.
|
|
|