Index: chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java |
index c79c32375b0efb35435161cc64889f65d7fae140..496e81def3560abef6d80be3a63d260d90c79725 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuPopulator.java |
@@ -38,7 +38,10 @@ public class ChromeContextMenuPopulator implements ContextMenuPopulator { |
@Override |
public void buildContextMenu(ContextMenu menu, Context context, ContextMenuParams params) { |
- if (!TextUtils.isEmpty(params.getLinkUrl())) menu.setHeaderTitle(params.getLinkUrl()); |
+ if (params.isImage() && !TextUtils.isEmpty(params.getSrcUrl())) |
+ menu.setHeaderTitle(params.getSrcUrl()); |
+ else if (!TextUtils.isEmpty(params.getLinkUrl()) ) |
+ menu.setHeaderTitle(params.getLinkUrl()); |
if (mMenuInflater == null) mMenuInflater = new MenuInflater(context); |