| 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;
|
| +}
|
|
|