| Index: content/renderer/render_view_impl.cc
|
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
| index f4c0c44c9a64acb15f73923e28548ed5c2a0a7a9..19fb20a6b962e16222a7551d80823347f7ba5a55 100644
|
| --- a/content/renderer/render_view_impl.cc
|
| +++ b/content/renderer/render_view_impl.cc
|
| @@ -2025,28 +2025,6 @@ void RenderViewImpl::show(WebNavigationPolicy policy) {
|
| SetPendingWindowRect(initial_rect_);
|
| }
|
|
|
| -void RenderViewImpl::runModal() {
|
| - DCHECK(did_show_) << "should already have shown the view";
|
| -
|
| - // Don't allow further dialogs if we are waiting to swap out, since the
|
| - // PageGroupLoadDeferrer in our stack prevents it.
|
| - if (suppress_dialogs_until_swap_out_)
|
| - return;
|
| -
|
| - // We must keep WebKit's shared timer running in this case in order to allow
|
| - // showModalDialog to function properly.
|
| - //
|
| - // TODO(darin): WebKit should really be smarter about suppressing events and
|
| - // timers so that we do not need to manage the shared timer in such a heavy
|
| - // handed manner.
|
| - //
|
| - if (RenderThreadImpl::current()) // Will be NULL during unit tests.
|
| - RenderThreadImpl::current()->DoNotSuspendWebKitSharedTimer();
|
| -
|
| - SendAndRunNestedMessageLoop(new ViewHostMsg_RunModal(
|
| - routing_id_, opener_id_));
|
| -}
|
| -
|
| bool RenderViewImpl::requestPointerLock() {
|
| return mouse_lock_dispatcher_->LockMouse(webwidget_mouse_lock_target_.get());
|
| }
|
|
|