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

Unified Diff: content/browser/download/save_package.cc

Issue 11867023: content: remove NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | « content/browser/download/download_manager_impl.cc ('k') | content/public/browser/download_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/save_package.cc
diff --git a/content/browser/download/save_package.cc b/content/browser/download/save_package.cc
index 1be1da452d577947f8b622da26438544df9b56dd..c074d1e585fb5380af176aec581b6fd9a799f6e0 100644
--- a/content/browser/download/save_package.cc
+++ b/content/browser/download/save_package.cc
@@ -1392,16 +1392,7 @@ void SavePackage::FinalizeDownloadEntry() {
DCHECK(download_);
DCHECK(download_manager_);
- NotificationService::current()->Notify(
- NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED,
- // We use the DownloadManager as the source as that's a
- // central SavePackage related location that observers can
- // get to if they want to wait for notifications for a
- // particular BrowserContext. Alternatively, we could make
- // it come from the WebContents, which would be more specific
- // but less useful to (current) customers.
- Source<DownloadManager>(download_manager_),
- Details<DownloadItem>(download_));
+ download_manager_->OnSavePackageSuccessfullyFinished(download_);
StopObservation();
}
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/public/browser/download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698