Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: chrome/browser/automation/automation_provider.cc

Issue 6969009: Reduced the lifetime of DownloadCreateInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed spurious DCHECK. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/automation/automation_provider.cc
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index c032eb551c95db641dc6328da4d0d03a189ec693..1bfd100058c7e9570491f32039984c125b9f7e5b 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -252,7 +252,7 @@ DictionaryValue* AutomationProvider::GetDictionaryFromDownloadItem(
DictionaryValue* dl_item_value = new DictionaryValue;
dl_item_value->SetInteger("id", static_cast<int>(download->id()));
- dl_item_value->SetString("url", download->url().spec());
+ dl_item_value->SetString("url", download->GetUrl().spec());
dl_item_value->SetString("referrer_url", download->referrer_url().spec());
dl_item_value->SetString("file_name",
download->GetFileNameToReportUser().value());
« no previous file with comments | « no previous file | chrome/browser/download/download_browsertest.cc » ('j') | chrome/browser/download/download_create_info.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698