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

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: Fix compiler warning. 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..0f58abb09b10550100881ef1e05aaab846c2e9d5 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -851,3 +851,10 @@ Profile* Profile::CreateOffTheRecordProfile() {
#endif
return new OffTheRecordProfileImpl(this);
}
+
+int Profile::DownloadCount() {
+ if (!HasCreatedDownloadManager())
+ return 0;
+
+ return GetDownloadManager()->in_progress_count();
Miranda Callahan 2011/07/21 23:04:17 A tiny change, but maybe 2 lines instead of 4 here
Randy Smith (Not in Mondays) 2011/07/22 20:41:30 Done.
+}

Powered by Google App Engine
This is Rietveld 408576698