summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/automation_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/automation/automation_provider.cc')
-rw-r--r--chrome/browser/automation/automation_provider.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index 60ed6ef..b01813f 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -282,8 +282,10 @@ DictionaryValue* AutomationProvider::GetDictionaryFromDownloadItem(
dl_item_value->SetInteger("id", static_cast<int>(download->id()));
dl_item_value->SetString("url", download->url().spec());
dl_item_value->SetString("referrer_url", download->referrer_url().spec());
- dl_item_value->SetString("file_name", download->GetFileName().value());
- dl_item_value->SetString("full_path", download->full_path().value());
+ dl_item_value->SetString("file_name",
+ download->GetFileNameToReportUser().value());
+ dl_item_value->SetString("full_path",
+ download->GetTargetFilePath().value());
dl_item_value->SetBoolean("is_paused", download->is_paused());
dl_item_value->SetBoolean("open_when_complete",
download->open_when_complete());