Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java |
index e58462f52805e47167f41743d9b6b210717a30a3..ed6ceb13024854a90181b1fc199fb3ced285872c 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java |
@@ -357,7 +357,8 @@ public class CustomTabActivity extends ChromeActivity { |
@Override |
protected AppMenuPropertiesDelegate createAppMenuPropertiesDelegate() { |
- return new CustomTabAppMenuPropertiesDelegate(this, mIntentDataProvider.getMenuTitles()); |
+ return new CustomTabAppMenuPropertiesDelegate(this, mIntentDataProvider.getMenuTitles(), |
+ mIntentDataProvider.shouldShowShareButton()); |
} |
@Override |
@@ -442,7 +443,7 @@ public class CustomTabActivity extends ChromeActivity { |
public boolean onOptionsItemSelected(MenuItem item) { |
int menuIndex = getAppMenuPropertiesDelegate().getIndexOfMenuItem(item); |
if (menuIndex >= 0) { |
- mIntentDataProvider.clickMenuItemWithUrl(getApplicationContext(), menuIndex, |
+ mIntentDataProvider.clickMenuItemWithUrl(this, menuIndex, |
getTabModelSelector().getCurrentTab().getUrl()); |
RecordUserAction.record("CustomTabsMenuCustomMenuItem"); |
return true; |