A recent change to the way we close tabs (http://codereview.chromium.org/235050) causes Browser::CanCloseContentsAt() to be called several times for the same tab. This was triggering a DCHECK in the "download in progress" warning.
A recent change to the way we close tabs (http://codereview.chromium.org/235050)
causes Browser::CanCloseContentsAt() to be called several times for the same tab.
This was triggering a DCHECK in the "download in progress" warning.

BUG=24974
TEST=See bug. Test thoroughly the "dowload in progress" warning: start a big
     download, then close Chrome (by closing all tabs, by using the top window
     close button). Make sure both behaviors (continue/abort closing) work as 
     expected.

Review URL: http://codereview.chromium.org/273076

git-svn-id: http://src.chromium.org/svn/trunk/src@29289 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 9eb058bbb0fd8c4ec16a359d2a9b496d24de2ae3
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser