Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1990)

Unified Diff: content/shell/browser/shell_web_contents_view_delegate_android.cc

Issue 2724533002: Deduplicating code |WebContentsDelegateAndroid::ShowContextMenu()| (Closed)
Patch Set: ContextMenuParams is a struct Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/android/content_view_core.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_web_contents_view_delegate_android.cc
diff --git a/content/shell/browser/shell_web_contents_view_delegate_android.cc b/content/shell/browser/shell_web_contents_view_delegate_android.cc
index 6905c9d1f6769c66316512ed6d3ff1d6bc9a3648..14248721ab3b2efc7c14d75ccfc4bcf16868e857 100644
--- a/content/shell/browser/shell_web_contents_view_delegate_android.cc
+++ b/content/shell/browser/shell_web_contents_view_delegate_android.cc
@@ -29,14 +29,10 @@ ShellWebContentsViewDelegate::~ShellWebContentsViewDelegate() {
void ShellWebContentsViewDelegate::ShowContextMenu(
RenderFrameHost* render_frame_host,
const ContextMenuParams& params) {
- if (params.is_editable && params.selection_text.empty()) {
- content::ContentViewCore* content_view_core =
- ContentViewCore::FromWebContents(web_contents_);
- if (content_view_core) {
- content_view_core->ShowPastePopup(params.selection_start.x(),
- params.selection_start.y());
- }
- }
+ content::ContentViewCore* content_view_core =
+ ContentViewCore::FromWebContents(web_contents_);
+ if (content_view_core)
+ content_view_core->ShowPastePopup(params);
}
} // namespace content
« no previous file with comments | « content/public/browser/android/content_view_core.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698