Chromium Code Reviews| 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..e3bac5c19174b792f3fca4ebd5087ed2b21e8674 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,17 @@ 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")) { |
| + openInChromeItem.setTitle(R.string.menu_open_in_chrome); |
|
gone
2016/06/16 18:07:58
Any reason why this string is different in this ca
Ian Wen
2016/06/16 21:09:00
Done.
|
| + } 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. |