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 ce791d5ea52547121d24852f64fb255112dfc6d2..db219533f6f48b3468a8ccbc374ba2f3d3b879cf 100644 |
--- a/chrome/browser/automation/testing_automation_provider.cc |
+++ b/chrome/browser/automation/testing_automation_provider.cc |
@@ -2704,7 +2704,7 @@ void TestingAutomationProvider::SetDownloadShelfVisibleJSON( |
if (is_visible) { |
browser->window()->GetDownloadShelf()->Show(); |
} else { |
- browser->window()->GetDownloadShelf()->Close(); |
+ browser->window()->GetDownloadShelf()->Close(DownloadShelf::AUTOMATIC); |
} |
reply.SendSuccess(NULL); |
} |