Do not send "unresponsive" message if window is showing a modal dialog.

This commit is contained in:
Cheng Zhao 2013-12-04 17:18:55 +08:00
Родитель bfe8928ab1
Коммит e43b39a009
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -348,11 +348,12 @@ bool NativeWindow::IsPopupOrPanel(const content::WebContents* source) const {
}
void NativeWindow::RendererUnresponsive(content::WebContents* source) {
LOG(ERROR) << "NativeWindow::RendererUnresponsive";
window_unresposive_closure_.Cancel();
FOR_EACH_OBSERVER(NativeWindowObserver,
observers_,
OnRendererUnresponsive());
if (!HasModalDialog())
FOR_EACH_OBSERVER(NativeWindowObserver,
observers_,
OnRendererUnresponsive());
}
void NativeWindow::RendererResponsive(content::WebContents* source) {