| 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 b56dd9c5f434a7db7dbdba3d997a2fcfc5c37e4a..b4ea0961111281e9306d82bb1c264c5319df728b 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::ShowWebModalDialog(
|
| 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(OS_WIN) || defined(USE_AURA)
|
|
|