| Index: components/web_modal/web_contents_modal_dialog_manager.cc
|
| diff --git a/components/web_modal/web_contents_modal_dialog_manager.cc b/components/web_modal/web_contents_modal_dialog_manager.cc
|
| index dfd7bad4cfe094c3ce2077bf5b724ab0a7354e26..99fd4e41c5983e0050ffd8f265fe3e2f613baa7d 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)
|
|
|