Index: chrome/browser/ui/cocoa/browser_window_controller.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm |
index f28c102dfa35719f121250aefd7425a52e93a8f8..d1bdcb1d968cbd02aa40feec129ef74a493a06fa 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm |
@@ -84,7 +84,6 @@ |
#include "components/signin/core/common/profile_management_switches.h" |
#include "components/translate/core/browser/translate_manager.h" |
#include "components/translate/core/browser/translate_ui_delegate.h" |
-#include "components/web_modal/popup_manager.h" |
#include "components/web_modal/web_contents_modal_dialog_manager.h" |
#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/render_widget_host_view.h" |
@@ -179,6 +178,7 @@ using content::OpenURLParams; |
using content::Referrer; |
using content::RenderWidgetHostView; |
using content::WebContents; |
+using web_modal::WebContentsModalDialogManager; |
@interface NSWindow (NSPrivateApis) |
// Note: These functions are private, use -[NSObject respondsToSelector:] |
@@ -1605,9 +1605,8 @@ using content::WebContents; |
WebContents* contents = browser_->tab_strip_model()->GetWebContentsAt(index); |
if (!contents) |
return NO; |
- |
- return !web_modal::PopupManager::FromWebContents(contents)-> |
- IsWebModalDialogActive(contents); |
+ return !WebContentsModalDialogManager::FromWebContents(contents)-> |
+ IsDialogActive(); |
} |
// TabStripControllerDelegate protocol. |