- // TODO(gbillock): Change this API to say directly if the current popup
- // should block tab close? This is a bit over-reaching.
- web_modal::PopupManager* popup_manager =
- web_modal::PopupManager::FromWebContents(host_->host_contents());
- if (popup_manager && popup_manager->IsWebModalDialogActive(
- host_->host_contents())) {
+ web_modal::WebContentsModalDialogManager* modalDialogManager =
+ web_modal::WebContentsModalDialogManager::FromWebContents(
+ host_->host_contents());
+ if (modalDialogManager &&
+ modalDialogManager->IsDialogActive()) {