Chromium Code Reviews| 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.
|
| +} |