Index: content/browser/android/download_controller.cc |
=================================================================== |
--- content/browser/android/download_controller.cc (revision 146004) |
+++ content/browser/android/download_controller.cc (working copy) |
@@ -9,7 +9,6 @@ |
#include "base/bind.h" |
#include "base/logging.h" |
#include "base/memory/scoped_ptr.h" |
-#include "content/browser/android/content_view_core_impl.h" |
#include "content/browser/download/download_item_impl.h" |
#include "content/browser/renderer_host/render_process_host_impl.h" |
#include "content/browser/renderer_host/render_view_host_delegate.h" |
@@ -219,7 +218,7 @@ |
// Register for updates to the DownloadItem. |
download_item->AddObserver(this); |
- jobject view = GetContentViewCoreFromWebContents(web_contents); |
+ jobject view = GetContentViewFromWebContents(web_contents); |
if(!view) { |
// The view went away. Can't proceed. |
return; |
@@ -246,14 +245,14 @@ |
ScopedJavaLocalRef<jstring> jpath = |
ConvertUTF8ToJavaString(env, item->GetFullPath().value()); |
- jobject view_core = GetContentViewCoreFromWebContents(item->GetWebContents()); |
- if (!view_core) { |
+ jobject view = GetContentViewFromWebContents(item->GetWebContents()); |
+ if(!view) { |
// We can get NULL WebContents from the DownloadItem. |
return; |
} |
Java_DownloadController_onHttpPostDownloadCompleted(env, |
- GetJavaObject()->Controller(env).obj(), view_core, jurl.obj(), |
+ GetJavaObject()->Controller(env).obj(), view, jurl.obj(), |
jcontent_disposition.obj(), jmime_type.obj(), jpath.obj(), |
item->GetReceivedBytes(), true); |
} |
@@ -275,10 +274,10 @@ |
if (!web_contents) |
return NULL; |
- return GetContentViewCoreFromWebContents(web_contents); |
+ return GetContentViewFromWebContents(web_contents); |
} |
-jobject DownloadController::GetContentViewCoreFromWebContents( |
+jobject DownloadController::GetContentViewFromWebContents( |
WebContents* web_contents) { |
NOTIMPLEMENTED(); |
return NULL; |