| Index: chrome/browser/ui/blocked_content/app_modal_dialog_helper.cc
|
| diff --git a/chrome/browser/ui/blocked_content/app_modal_dialog_helper.cc b/chrome/browser/ui/blocked_content/app_modal_dialog_helper.cc
|
| index fea3ec37b5699dedf8f3e2af672772334c2cb5e0..2b539ea35723b7cb7789f40f10457162a8954d9a 100644
|
| --- a/chrome/browser/ui/blocked_content/app_modal_dialog_helper.cc
|
| +++ b/chrome/browser/ui/blocked_content/app_modal_dialog_helper.cc
|
| @@ -16,10 +16,7 @@ AppModalDialogHelper::AppModalDialogHelper(content::WebContents* dialog_host)
|
| // If the WebContents that triggered this dialog is not currently focused, we
|
| // want to store a potential popup here to restore it after the dialog was
|
| // closed.
|
| - chrome::HostDesktopType desktop_type =
|
| - chrome::GetHostDesktopTypeForNativeView(dialog_host->GetNativeView());
|
| - Browser* active_browser =
|
| - BrowserList::GetInstance(desktop_type)->GetLastActive();
|
| + Browser* active_browser = BrowserList::GetInstance()->GetLastActive();
|
| if (active_browser) {
|
| content::WebContents* active_web_contents =
|
| active_browser->tab_strip_model()->GetActiveWebContents();
|
|
|