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

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: Fixing trybot failures (chromeos specifically). Created 9 years, 4 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 8ba32943bf073df01a661f474e7bbe8316444038..a0d8cea02754a6fc0934270aea3d93ef3f6f4212 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -877,3 +877,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