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

Unified Diff: content/browser/android/download_controller_android_impl.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: content/browser/android/download_controller_android_impl.cc
diff --git a/content/browser/android/download_controller_android_impl.cc b/content/browser/android/download_controller_android_impl.cc
index f1a3699c51c22dfeee149a96d13fc71321747f68..386d6a01f7a5e04c04916ee9ec2745c85852d892 100644
--- a/content/browser/android/download_controller_android_impl.cc
+++ b/content/browser/android/download_controller_android_impl.cc
@@ -18,6 +18,7 @@
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/global_request_id.h"
+#include "content/public/browser/web_contents_view.h"
#include "jni/DownloadController_jni.h"
#include "net/cookies/cookie_options.h"
#include "net/cookies/cookie_store.h"
@@ -311,7 +312,7 @@ ScopedJavaLocalRef<jobject>
if (!web_contents)
return ScopedJavaLocalRef<jobject>();
- ContentViewCore* view_core = web_contents->GetContentNativeView();
+ ContentViewCore* view_core = web_contents->GetView()->GetContentNativeView();
return view_core ? view_core->GetJavaObject() :
ScopedJavaLocalRef<jobject>();
}

Powered by Google App Engine
This is Rietveld 408576698