| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 08019724638feb4bba451acccd367ed1f1cd2e86..055b83e2d6d7e02d3ea641416d04c535fde478c7 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -1494,8 +1494,7 @@ int Browser::GetExtraRenderViewHeight() const {
|
|
|
| void Browser::OnStartDownload(WebContents* source,
|
| content::DownloadItem* download) {
|
| - scoped_ptr<DownloadItemModel> download_model(new DownloadItemModel(download));
|
| - if (!download_model->ShouldShowInShelf())
|
| + if (!DownloadItemModel(download).ShouldShowInShelf())
|
| return;
|
|
|
| WebContents* constrained = GetConstrainingWebContents(source);
|
| @@ -1510,7 +1509,7 @@ void Browser::OnStartDownload(WebContents* source,
|
|
|
| // GetDownloadShelf creates the download shelf if it was not yet created.
|
| DownloadShelf* shelf = window()->GetDownloadShelf();
|
| - shelf->AddDownload(download_model.release());
|
| + shelf->AddDownload(download);
|
| // Don't show the animation for "Save file" downloads.
|
| // For non-theme extensions, we don't show the download animation.
|
| // Show animation in same window as the download shelf. Download shelf
|
|
|