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

Unified Diff: android_webview/native/aw_web_contents_delegate.cc

Issue 11821011: Return false in AwWebContentsDelegate::CanDownload (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « android_webview/browser/aw_download_manager_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_web_contents_delegate.cc
diff --git a/android_webview/native/aw_web_contents_delegate.cc b/android_webview/native/aw_web_contents_delegate.cc
index fb9283e30d5568f122ec4f1e7ff115152ffa505e..bfd4741698148bf4309a82ab0702d039e77b8dec 100644
--- a/android_webview/native/aw_web_contents_delegate.cc
+++ b/android_webview/native/aw_web_contents_delegate.cc
@@ -10,10 +10,8 @@
#include "base/android/scoped_java_ref.h"
#include "base/lazy_instance.h"
#include "base/message_loop.h"
-#include "content/public/browser/android/download_controller_android.h"
#include "content/public/browser/web_contents.h"
#include "jni/AwWebContentsDelegate_jni.h"
-#include "net/http/http_request_headers.h"
using base::android::AttachCurrentThread;
using base::android::ScopedJavaLocalRef;
@@ -57,10 +55,6 @@ void AwWebContentsDelegate::FindReply(WebContents* web_contents,
bool AwWebContentsDelegate::CanDownload(content::RenderViewHost* source,
int request_id,
const std::string& request_method) {
- if (request_method == net::HttpRequestHeaders::kGetMethod) {
- content::DownloadControllerAndroid::Get()->CreateGETDownload(
- source, request_id);
- }
return false;
boliu 2013/01/09 00:47:46 could you put a NOTREACHED here?
joth 2013/01/09 00:53:18 +1 also lets add a comment to explain why: // And
nilesh 2013/01/09 01:01:39 Added NOTREACHED and explanation. I have skipped t
}
« no previous file with comments | « android_webview/browser/aw_download_manager_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698