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 ecd2e585638e57aa49d9d8a7834433a7db6341db..6081c641843cbc12f3a4cbda3617054b59c727a5 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 |
@@ -366,7 +366,8 @@ public class CustomTabActivity extends ChromeActivity { |
@Override |
protected AppMenuPropertiesDelegate createAppMenuPropertiesDelegate() { |
- return new CustomTabAppMenuPropertiesDelegate(this, mIntentDataProvider.getMenuTitles()); |
+ return new CustomTabAppMenuPropertiesDelegate(this, mIntentDataProvider.getMenuTitles(), |
+ mIntentDataProvider.shouldShowShareMenuItem()); |
} |
@Override |
@@ -453,7 +454,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; |