summaryrefslogtreecommitdiffstats
path: root/components/web_modal/web_contents_modal_dialog_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/web_modal/web_contents_modal_dialog_manager.cc')
-rw-r--r--components/web_modal/web_contents_modal_dialog_manager.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/components/web_modal/web_contents_modal_dialog_manager.cc b/components/web_modal/web_contents_modal_dialog_manager.cc
index dfd7bad..99fd4e4 100644
--- a/components/web_modal/web_contents_modal_dialog_manager.cc
+++ b/components/web_modal/web_contents_modal_dialog_manager.cc
@@ -33,18 +33,17 @@ void WebContentsModalDialogManager::SetDelegate(
}
}
-// TODO(gbillock): Rename to ShowWebModalDialog()
-void WebContentsModalDialogManager::ShowDialog(
+void WebContentsModalDialogManager::ShowModalDialog(
NativeWebContentsModalDialog dialog) {
- scoped_ptr<NativeWebContentsModalDialogManager> mgr(
- CreateNativeManager(this));
+ scoped_ptr<SingleWebContentsDialogManager> mgr(
+ CreateNativeWebModalManager(this));
ShowDialogWithManager(dialog, mgr.Pass());
}
// TODO(gbillock): Maybe "ShowBubbleWithManager"?
void WebContentsModalDialogManager::ShowDialogWithManager(
NativeWebContentsModalDialog dialog,
- scoped_ptr<NativeWebContentsModalDialogManager> manager) {
+ scoped_ptr<SingleWebContentsDialogManager> manager) {
if (delegate_)
manager->HostChanged(delegate_->GetWebContentsModalDialogHost());
child_dialogs_.push_back(new DialogState(dialog, manager.Pass()));
@@ -108,7 +107,7 @@ WebContentsModalDialogManager::WebContentsModalDialogManager(
WebContentsModalDialogManager::DialogState::DialogState(
NativeWebContentsModalDialog dialog,
- scoped_ptr<NativeWebContentsModalDialogManager> mgr)
+ scoped_ptr<SingleWebContentsDialogManager> mgr)
: dialog(dialog),
manager(mgr.release()),
#if defined(USE_AURA)