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

Unified Diff: chrome/browser/download/download_status_updater.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
« no previous file with comments | « chrome/browser/download/download_status_updater.h ('k') | content/browser/download/download_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_status_updater.cc
===================================================================
--- chrome/browser/download/download_status_updater.cc (revision 121040)
+++ chrome/browser/download/download_status_updater.cc (working copy)
@@ -8,7 +8,6 @@
#include "base/logging.h"
#include "base/stl_util.h"
-#include "chrome/browser/download/download_util.h"
DownloadStatusUpdater::DownloadStatusUpdater() {
}
@@ -59,8 +58,6 @@
it != downloads.end(); ++it) {
UpdateItem(*it);
}
-
- UpdateAppIconDownloadProgress();
}
void DownloadStatusUpdater::ManagerGoingDown(
@@ -80,21 +77,11 @@
void DownloadStatusUpdater::OnDownloadUpdated(
content::DownloadItem* download) {
UpdateItem(download);
- UpdateAppIconDownloadProgress();
}
void DownloadStatusUpdater::OnDownloadOpened(content::DownloadItem* download) {
}
-void DownloadStatusUpdater::UpdateAppIconDownloadProgress() {
- float progress = 0;
- int download_count = 0;
- bool progress_known = GetProgress(&progress, &download_count);
- download_util::UpdateAppIconDownloadProgress(download_count,
- progress_known,
- progress);
-}
-
// React to a transition that a download associated with one of our
// download managers has made. Our goal is to have only IN_PROGRESS
// items on our set list, as they're the only ones that have relevance
« no previous file with comments | « chrome/browser/download/download_status_updater.h ('k') | content/browser/download/download_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698