| Index: chrome/browser/automation/testing_automation_provider.cc
|
| diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
|
| index bd75e2eefcd467aeb363420d976e3d5330052466..215a4801747734634fca561c0ef65d9c5f6a2299 100644
|
| --- a/chrome/browser/automation/testing_automation_provider.cc
|
| +++ b/chrome/browser/automation/testing_automation_provider.cc
|
| @@ -2598,17 +2598,17 @@ void TestingAutomationProvider::WaitForDownloadsToComplete(
|
| Browser* browser,
|
| DictionaryValue* args,
|
| IPC::Message* reply_message) {
|
| - AutomationJSONReply reply(this, reply_message);
|
|
|
| // Look for a quick return.
|
| if (!profile_->HasCreatedDownloadManager()) {
|
| - reply.SendSuccess(NULL); // No download manager.
|
| + // No download manager.
|
| + AutomationJSONReply(this, reply_message).SendSuccess(NULL);
|
| return;
|
| }
|
| std::vector<DownloadItem*> downloads;
|
| profile_->GetDownloadManager()->GetCurrentDownloads(FilePath(), &downloads);
|
| if (downloads.empty()) {
|
| - reply.SendSuccess(NULL);
|
| + AutomationJSONReply(this, reply_message).SendSuccess(NULL);
|
| return;
|
| }
|
|
|
|
|