| Index: chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java
|
| index 087c6e716e7e9a9283b85c3bad89199abfc32787..0a202f066e61f590759760f9b8ba34d4bba4c50a 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java
|
| @@ -120,26 +120,27 @@ public class ContextMenuHelper implements OnCreateContextMenuListener {
|
| return;
|
| }
|
|
|
| - final ContextMenuUi menuUi = new TabularContextMenuUi(new Runnable() {
|
| + final TabularContextMenuUi menuUi = new TabularContextMenuUi(new Runnable() {
|
| @Override
|
| public void run() {
|
| shareImageDirectly(ShareHelper.getLastShareComponentName());
|
| }
|
| });
|
| + menuUi.setRenderCoordinates(contentViewCore.getRenderCoordinates());
|
| menuUi.displayMenu(mActivity, mCurrentContextMenuParams, items, mCallback, mOnMenuShown,
|
| mOnMenuClosed);
|
| if (mCurrentContextMenuParams.isImage()) {
|
| getThumbnail(new Callback<Bitmap>() {
|
| @Override
|
| public void onResult(Bitmap result) {
|
| - ((TabularContextMenuUi) menuUi).onImageThumbnailRetrieved(result);
|
| + menuUi.onImageThumbnailRetrieved(result);
|
| }
|
| });
|
| }
|
| return;
|
| }
|
|
|
| - // The Platform Context Menu requires the listener within this hepler since this helper and
|
| + // The Platform Context Menu requires the listener within this helper since this helper and
|
| // provides context menu for us to show.
|
| view.setOnCreateContextMenuListener(this);
|
| if (view.showContextMenu()) {
|
|
|