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

Unified Diff: components/web_contents_delegate_android/color_chooser_android.cc

Issue 12334073: Remove WebContents methods that duplicate WebContentsView methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: components/web_contents_delegate_android/color_chooser_android.cc
diff --git a/components/web_contents_delegate_android/color_chooser_android.cc b/components/web_contents_delegate_android/color_chooser_android.cc
index 6e4c298fc7bf16a1e01092965eea5855d0d42006..b0f53d5d8510604e4b9d76bc989d2940269a15e0 100644
--- a/components/web_contents_delegate_android/color_chooser_android.cc
+++ b/components/web_contents_delegate_android/color_chooser_android.cc
@@ -6,6 +6,7 @@
#include "content/public/browser/android/content_view_core.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_contents_view.h"
#include "jni/ColorChooserAndroid_jni.h"
namespace content {
@@ -25,7 +26,8 @@ ColorChooserAndroid::ColorChooserAndroid(int identifier,
: ColorChooser::ColorChooser(identifier),
content::WebContentsObserver(tab) {
JNIEnv* env = AttachCurrentThread();
- content::ContentViewCore* content_view_core = tab->GetContentNativeView();
+ content::ContentViewCore* content_view_core =
+ tab->GetView()->GetContentNativeView();
DCHECK(content_view_core);
j_color_chooser_.Reset(Java_ColorChooserAndroid_createColorChooserAndroid(
« no previous file with comments | « chrome/test/perf/rendering/throughput_tests.cc ('k') | content/browser/android/download_controller_android_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698