diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/views/frame/browser_view2.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/views/frame/browser_view2.cc b/chrome/browser/views/frame/browser_view2.cc index f478cc6..6a33f1d 100644 --- a/chrome/browser/views/frame/browser_view2.cc +++ b/chrome/browser/views/frame/browser_view2.cc @@ -199,11 +199,10 @@ void BrowserView2::AddViewToDropList(ChromeViews::View* view) { bool BrowserView2::ActivateAppModalDialog() const { // If another browser is app modal, flash and activate the modal browser. if (BrowserList::IsShowingAppModalDialog()) { - if (browser_ != BrowserList::GetLastActive()) { - CHECK(BrowserList::GetLastActive()); - CHECK(BrowserList::GetLastActive()->window()); - BrowserList::GetLastActive()->window()->FlashFrame(); - BrowserList::GetLastActive()->MoveToFront(true); + Browser* active_browser = BrowserList::GetLastActive(); + if (active_browser && (browser_ != active_browser)) { + active_browser->window()->FlashFrame(); + active_browser->MoveToFront(true); } AppModalDialogQueue::ActivateModalDialog(); return true; |