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

Unified Diff: content/shell/shell_web_contents_view_delegate_android.cc

Issue 14018004: [Android] Refactor NativeView to be able to use it for AutofillDialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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
Index: content/shell/shell_web_contents_view_delegate_android.cc
diff --git a/content/shell/shell_web_contents_view_delegate_android.cc b/content/shell/shell_web_contents_view_delegate_android.cc
index d222b8898295acd5f7d39eaaa3a49afc437f5f2f..6277a1c15db6cb96c260e983e61ea1e245621b31 100644
--- a/content/shell/shell_web_contents_view_delegate_android.cc
+++ b/content/shell/shell_web_contents_view_delegate_android.cc
@@ -32,7 +32,7 @@ void ShellWebContentsViewDelegate::ShowContextMenu(
ContextMenuSourceType type) {
if (params.is_editable && params.selection_text.empty()) {
content::ContentViewCore* content_view_core =
- web_contents_->GetView()->GetContentNativeView();
+ ContentViewCore::FromWebContents(web_contents_);
if (content_view_core) {
content_view_core->ShowPastePopup(params.selection_start.x(),
params.selection_start.y());
« no previous file with comments | « content/public/browser/android/content_view_core.h ('k') | ui/android/java/src/org/chromium/ui/ViewAndroid.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698