summaryrefslogtreecommitdiffstats
path: root/content/browser/android
diff options
context:
space:
mode:
authoraurimas@chromium.org <aurimas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-09 20:08:58 +0000
committeraurimas@chromium.org <aurimas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-09 20:08:58 +0000
commitad5effdb45d98771699647b07248c0e88c656200 (patch)
treef3b457b5b9d4ba6f9b420102add796186dd86462 /content/browser/android
parentd9dfd1af15abe1a84170fb67b4f70a2ed345c5fe (diff)
downloadchromium_src-ad5effdb45d98771699647b07248c0e88c656200.zip
chromium_src-ad5effdb45d98771699647b07248c0e88c656200.tar.gz
chromium_src-ad5effdb45d98771699647b07248c0e88c656200.tar.bz2
[android] Removing shortcuts in getting ContentViewCore.
Starting to use ContentViewCore::FromWebContents() to get ContentViewCore instead of calling NativeView. BUG=229199 Review URL: https://chromiumcodereview.appspot.com/13863002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/android')
-rw-r--r--content/browser/android/download_controller_android_impl.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/content/browser/android/download_controller_android_impl.cc b/content/browser/android/download_controller_android_impl.cc
index d8f5d91..159d733 100644
--- a/content/browser/android/download_controller_android_impl.cc
+++ b/content/browser/android/download_controller_android_impl.cc
@@ -297,10 +297,7 @@ ScopedJavaLocalRef<jobject> DownloadControllerAndroidImpl::GetContentView(
ScopedJavaLocalRef<jobject>
DownloadControllerAndroidImpl::GetContentViewCoreFromWebContents(
WebContents* web_contents) {
- if (!web_contents)
- return ScopedJavaLocalRef<jobject>();
-
- ContentViewCore* view_core = web_contents->GetView()->GetContentNativeView();
+ ContentViewCore* view_core = ContentViewCore::FromWebContents(web_contents);
return view_core ? view_core->GetJavaObject() :
ScopedJavaLocalRef<jobject>();
}