| Index: chrome/browser/external_tab_container.cc
|
| ===================================================================
|
| --- chrome/browser/external_tab_container.cc (revision 32803)
|
| +++ chrome/browser/external_tab_container.cc (working copy)
|
| @@ -397,6 +397,9 @@
|
| bool ExternalTabContainer::CanDownload(int request_id) {
|
| if (load_requests_via_automation_) {
|
| if (automation_) {
|
| + // In case the host needs to show UI that needs to take the focus.
|
| + ::AllowSetForegroundWindow(ASFW_ANY);
|
| +
|
| ChromeThread::PostTask(ChromeThread::IO, FROM_HERE,
|
| NewRunnableMethod(automation_resource_message_filter_,
|
| &AutomationResourceMessageFilter::SendDownloadRequestToHost,
|
|
|