| Index: chrome/browser/download/download_ui_controller.cc
|
| diff --git a/chrome/browser/download/download_ui_controller.cc b/chrome/browser/download/download_ui_controller.cc
|
| index 5b45568db437f388da4e5e7522aeaa11f197b6bb..e0bb05bf48dfffa2fd1a5d3262e4e7e30c74580c 100644
|
| --- a/chrome/browser/download/download_ui_controller.cc
|
| +++ b/chrome/browser/download/download_ui_controller.cc
|
| @@ -87,10 +87,8 @@ void DownloadShelfUIControllerDelegate::OnNewDownloadReady(
|
|
|
| // As a last resort, use the last active browser for this profile. Not ideal,
|
| // but better than not showing the download at all.
|
| - if (browser == NULL) {
|
| - browser = chrome::FindLastActiveWithProfile(profile_,
|
| - chrome::GetActiveDesktop());
|
| - }
|
| + if (browser == nullptr)
|
| + browser = chrome::FindLastActiveWithProfile(profile_);
|
|
|
| if (browser && browser->window() &&
|
| DownloadItemModel(item).ShouldShowInShelf()) {
|
|
|