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

Unified Diff: chrome/browser/android/chrome_web_contents_delegate_android.cc

Issue 11640007: Make the UI an observer of downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android clang build 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: chrome/browser/android/chrome_web_contents_delegate_android.cc
diff --git a/chrome/browser/android/chrome_web_contents_delegate_android.cc b/chrome/browser/android/chrome_web_contents_delegate_android.cc
index 909fd440fc0e85bc9348cdbb0e4d5fd2ded7270d..4ed56212032e30751c5fe35844038d4e8394ed67 100644
--- a/chrome/browser/android/chrome_web_contents_delegate_android.cc
+++ b/chrome/browser/android/chrome_web_contents_delegate_android.cc
@@ -276,16 +276,12 @@ bool ChromeWebContentsDelegateAndroid::CanDownload(
source, request_id);
return false;
}
+ // DownloadControllerAndroid::OnPostDownloadStarted() is called for the
+ // started download by the default DownloadUIController::Delegate
+ // implementation.
return true;
}
-void ChromeWebContentsDelegateAndroid::OnStartDownload(
- WebContents* source,
- content::DownloadItem* download) {
- content::DownloadControllerAndroid::Get()->OnPostDownloadStarted(
- source, download);
-}
-
void ChromeWebContentsDelegateAndroid::DidNavigateToPendingEntry(
content::WebContents* source) {
navigation_start_time_ = base::TimeTicks::Now();
« no previous file with comments | « chrome/browser/android/chrome_web_contents_delegate_android.h ('k') | chrome/browser/download/all_download_item_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698