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

Unified Diff: chrome/browser/download/chrome_download_manager_delegate.cc

Issue 9361046: Revert 121031 - Eliminate DownloadProgressUpdated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/download/chrome_download_manager_delegate.cc
===================================================================
--- chrome/browser/download/chrome_download_manager_delegate.cc (revision 121040)
+++ chrome/browser/download/chrome_download_manager_delegate.cc (working copy)
@@ -296,6 +296,19 @@
download_prefs_.get(), callback);
}
+void ChromeDownloadManagerDelegate::DownloadProgressUpdated() {
+ if (!g_browser_process->download_status_updater())
+ return;
+
+ float progress = 0;
+ int download_count = 0;
+ bool progress_known =
+ g_browser_process->download_status_updater()->GetProgress(
+ &progress, &download_count);
+ download_util::UpdateAppIconDownloadProgress(
+ download_count, progress_known, progress);
+}
+
#if defined(ENABLE_SAFE_BROWSING)
DownloadProtectionService*
ChromeDownloadManagerDelegate::GetDownloadProtectionService() {
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.h ('k') | chrome/browser/download/download_status_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698