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

Unified Diff: chrome/browser/profiles/profile.cc

Issue 7466033: Fix warning prompting on closing a window that will cancel downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Various fixes related to try jobs. Created 9 years, 5 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/profiles/profile.cc
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
index 2867fcfa2bfd5a7d724c2ea0080cd987a98e6eee..d2d9ef2102664f822a25a2e5181cdb820dfaf40a 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -868,3 +868,8 @@ Profile* Profile::CreateOffTheRecordProfile() {
#endif
return new OffTheRecordProfileImpl(this);
}
+
+int Profile::DownloadCount() {
+ return HasCreatedDownloadManager() ?
+ GetDownloadManager()->in_progress_count() : 0;
+}

Powered by Google App Engine
This is Rietveld 408576698