| Index: chrome/browser/ui/views/frame/browser_view.cc
|
| diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
|
| index 258cbd179e1c43bce93282f13440018420c0979b..a03665c6d8abdc7a7853e854792a9d97acb89217 100644
|
| --- a/chrome/browser/ui/views/frame/browser_view.cc
|
| +++ b/chrome/browser/ui/views/frame/browser_view.cc
|
| @@ -1502,14 +1502,15 @@ bool BrowserView::CanMinimize() const {
|
| }
|
|
|
| bool BrowserView::CanActivate() const {
|
| - if (!AppModalDialogQueue::GetInstance()->active_dialog() ||
|
| - !AppModalDialogQueue::GetInstance()->active_dialog()->native_dialog())
|
| + app_modal_dialogs::AppModalDialogQueue* queue =
|
| + app_modal_dialogs::AppModalDialogQueue::GetInstance();
|
| + if (!queue->active_dialog() || !queue->active_dialog()->native_dialog())
|
| return true;
|
|
|
| #if defined(USE_AURA) && defined(OS_CHROMEOS)
|
| // On Aura window manager controls all windows so settings focus via PostTask
|
| // will make only worse because posted task will keep trying to steal focus.
|
| - AppModalDialogQueue::GetInstance()->ActivateModalDialog();
|
| + app_modal_dialogs::AppModalDialogQueue::GetInstance()->ActivateModalDialog();
|
| #else
|
| // If another browser is app modal, flash and activate the modal browser. This
|
| // has to be done in a post task, otherwise if the user clicked on a window
|
| @@ -2490,8 +2491,8 @@ bool BrowserView::DoCutCopyPasteForWebContents(
|
|
|
| void BrowserView::ActivateAppModalDialog() const {
|
| // If another browser is app modal, flash and activate the modal browser.
|
| - AppModalDialog* active_dialog =
|
| - AppModalDialogQueue::GetInstance()->active_dialog();
|
| + app_modal_dialogs::AppModalDialog* active_dialog =
|
| + app_modal_dialogs::AppModalDialogQueue::GetInstance()->active_dialog();
|
| if (!active_dialog)
|
| return;
|
|
|
| @@ -2502,7 +2503,7 @@ void BrowserView::ActivateAppModalDialog() const {
|
| modal_browser->window()->Activate();
|
| }
|
|
|
| - AppModalDialogQueue::GetInstance()->ActivateModalDialog();
|
| + app_modal_dialogs::AppModalDialogQueue::GetInstance()->ActivateModalDialog();
|
| }
|
|
|
| int BrowserView::GetMaxTopInfoBarArrowHeight() {
|
|
|