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

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: Parallel view cleanup to gtk. 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 f82826cdf52c4fe483fbab6ab851125184b21fcd..36d91f24fed8b92e9ebcd8f97547ea3aeef7aba3 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -851,3 +851,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