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 44e7f29be72b61b35cb723ebf7b3a90f909c5261..6a126aab30ded1d286c8859a36a9034e7fc73412 100644 |
--- a/chrome/browser/extensions/api/downloads/downloads_api.cc |
+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc |
@@ -218,9 +218,9 @@ scoped_ptr<base::DictionaryValue> DownloadItemToJSON( |
json->SetBoolean(kExistsKey, !download_item->GetFileExternallyRemoved()); |
json->SetInteger(kIdKey, download_item->GetId()); |
const GURL& url = download_item->GetOriginalUrl(); |
- json->SetString(kUrlKey, (url.is_valid() ? url.spec() : "")); |
- json->SetString( |
- kFilenameKey, download_item->GetFullPath().LossyDisplayName()); |
+ json->SetString(kUrlKey, (url.is_valid() ? url.spec() : std::string())); |
+ json->SetString(kFilenameKey, |
+ download_item->GetFullPath().LossyDisplayName()); |
json->SetString(kDangerKey, DangerString(download_item->GetDangerType())); |
if (download_item->GetDangerType() != |
content::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS) |