Index: chrome/browser/extensions/api/downloads/downloads_api.cc |
diff --git a/chrome/browser/extensions/api/downloads/downloads_api.cc b/chrome/browser/extensions/api/downloads/downloads_api.cc |
index fab0dd137aa1d4ffe17d44237485f77ab19f1d5d..b47c48a5ad1b79496a762c6f8f09a1efdb2f4952 100644 |
--- a/chrome/browser/extensions/api/downloads/downloads_api.cc |
+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc |
@@ -258,8 +258,8 @@ scoped_ptr<base::DictionaryValue> DownloadItemToJSON( |
json->SetBoolean(kPausedKey, download_item->IsPaused()); |
json->SetString(kMimeKey, download_item->GetMimeType()); |
json->SetString(kStartTimeKey, TimeToISO8601(download_item->GetStartTime())); |
- json->SetInteger(kBytesReceivedKey, download_item->GetReceivedBytes()); |
- json->SetInteger(kTotalBytesKey, download_item->GetTotalBytes()); |
+ json->SetDouble(kBytesReceivedKey, download_item->GetReceivedBytes()); |
+ json->SetDouble(kTotalBytesKey, download_item->GetTotalBytes()); |
json->SetBoolean(kIncognitoKey, profile->IsOffTheRecord()); |
if (download_item->GetState() == DownloadItem::INTERRUPTED) { |
json->SetString(kErrorKey, content::InterruptReasonDebugString( |
@@ -290,7 +290,7 @@ scoped_ptr<base::DictionaryValue> DownloadItemToJSON( |
json->SetString(kByExtensionNameKey, extension->name()); |
} |
// TODO(benjhayden): Implement fileSize. |
- json->SetInteger(kFileSizeKey, download_item->GetTotalBytes()); |
+ json->SetDouble(kFileSizeKey, download_item->GetTotalBytes()); |
return scoped_ptr<base::DictionaryValue>(json); |
} |