| Index: chrome/browser/browser.cc
|
| diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
|
| index 52eedaddd615977c8d4b74a9b8f02d385fb7235e..b742599280babf9ebf662303cb51c3f5bf180738 100644
|
| --- a/chrome/browser/browser.cc
|
| +++ b/chrome/browser/browser.cc
|
| @@ -2240,13 +2240,19 @@ void Browser::OnStartDownload(DownloadItem* download) {
|
| window()->GetDownloadShelf()->AddDownload(new DownloadItemModel(download));
|
|
|
| // Don't show the animation for "Save file" downloads.
|
| - if (download->total_bytes() > 0) {
|
| - TabContents* current_tab = GetSelectedTabContents();
|
| - // We make this check for the case of minimized windows, unit tests, etc.
|
| - if (platform_util::IsVisible(current_tab->GetNativeView()) &&
|
| - Animation::ShouldRenderRichAnimation())
|
| - DownloadStartedAnimation::Show(current_tab);
|
| - }
|
| + if (download->total_bytes() <= 0)
|
| + return;
|
| +
|
| + // For non-theme extensions, we don't show the download animation.
|
| + if (DownloadManager::IsExtensionInstall(download) &&
|
| + !ExtensionsService::IsDownloadFromMiniGallery(download->url()))
|
| + return;
|
| +
|
| + TabContents* current_tab = GetSelectedTabContents();
|
| + // We make this check for the case of minimized windows, unit tests, etc.
|
| + if (platform_util::IsVisible(current_tab->GetNativeView()) &&
|
| + Animation::ShouldRenderRichAnimation())
|
| + DownloadStartedAnimation::Show(current_tab);
|
| }
|
|
|
| void Browser::ConfirmAddSearchProvider(const TemplateURL* template_url,
|
|
|