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

Unified Diff: chrome/browser/android/download/chrome_download_delegate.cc

Issue 2871663004: Remove webContents check when download starts (Closed)
Patch Set: nits Created 3 years, 7 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: chrome/browser/android/download/chrome_download_delegate.cc
diff --git a/chrome/browser/android/download/chrome_download_delegate.cc b/chrome/browser/android/download/chrome_download_delegate.cc
index dc75a1826f12b46d0af34fc56aca94523d5554c0..c19b4c3e2c891ea7f0b3acb8801058118edf3bf7 100644
--- a/chrome/browser/android/download/chrome_download_delegate.cc
+++ b/chrome/browser/android/download/chrome_download_delegate.cc
@@ -83,13 +83,6 @@ void ChromeDownloadDelegate::SetJavaRef(JNIEnv* env, jobject jobj) {
java_ref_ = env->NewGlobalRef(jobj);
}
-void ChromeDownloadDelegate::OnDownloadStarted(const std::string& filename) {
- JNIEnv* env = base::android::AttachCurrentThread();
- ScopedJavaLocalRef<jstring> jfilename = ConvertUTF8ToJavaString(
- env, filename);
- Java_ChromeDownloadDelegate_onDownloadStarted(env, java_ref_, jfilename);
-}
-
void ChromeDownloadDelegate::EnqueueDownloadManagerRequest(
const std::string& url,
const std::string& user_agent,
« no previous file with comments | « chrome/browser/android/download/chrome_download_delegate.h ('k') | chrome/browser/android/download/download_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698