Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 53dfccd6dffaa85ee85a49c9146305cb6e6385c5..1dc929def70be03362a112f602aee8a5c5ab5526 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -1339,8 +1339,7 @@ void Browser::ShowDownload(content::DownloadItem* download) { |
return; |
// GetDownloadShelf creates the download shelf if it was not yet created. |
- DownloadShelf* shelf = window()->GetDownloadShelf(); |
- shelf->AddDownload(download); |
+ window()->GetDownloadShelf()->AddDownload(download); |
} |
/////////////////////////////////////////////////////////////////////////////// |