diff options
author | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-18 19:33:16 +0000 |
---|---|---|
committer | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-18 19:33:16 +0000 |
commit | 90c09c3fd3e67f04dd770b9609ca9a765292fe2e (patch) | |
tree | 09d0b609fd0bbe55d5db434dfb4ee56399f4579e /chrome/browser/download/download_shelf_unittest.cc | |
parent | a68c2a743099890701b6c60bf8771ef1c9fc1956 (diff) | |
download | chromium_src-90c09c3fd3e67f04dd770b9609ca9a765292fe2e.zip chromium_src-90c09c3fd3e67f04dd770b9609ca9a765292fe2e.tar.gz chromium_src-90c09c3fd3e67f04dd770b9609ca9a765292fe2e.tar.bz2 |
Leave download shelf open after failed extension install.
Downloads of browser extensions are opened automatically (unless invoked
via "Save As"). The download shelf is closed for such downloads. However,
if off-store extension installs are disabled, then the auto-open will
fail. If this happens, keep the shelf open so that the user can interact
with the downloaded extension.
BUG=236201
Review URL: https://chromiumcodereview.appspot.com/19555003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212398 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_shelf_unittest.cc')
-rw-r--r-- | chrome/browser/download/download_shelf_unittest.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/download/download_shelf_unittest.cc b/chrome/browser/download/download_shelf_unittest.cc index 2280173..3a16773 100644 --- a/chrome/browser/download/download_shelf_unittest.cc +++ b/chrome/browser/download/download_shelf_unittest.cc @@ -151,6 +151,8 @@ TEST_F(DownloadShelfTest, AddDelayedCompletedDownload) { EXPECT_CALL(*download_item(), GetState()) .WillRepeatedly(Return(DownloadItem::COMPLETE)); + EXPECT_CALL(*download_item(), GetAutoOpened()) + .WillRepeatedly(Return(true)); base::RunLoop run_loop; run_loop.RunUntilIdle(); |