Chromium Code Reviews| Index: chrome/browser/devtools/devtools_sanity_browsertest.cc |
| diff --git a/chrome/browser/devtools/devtools_sanity_browsertest.cc b/chrome/browser/devtools/devtools_sanity_browsertest.cc |
| index 979c9920040b74aba0567e41ecf6c5da5b91503a..ec988312eaef31f60ee66f0f3119af209824da33 100644 |
| --- a/chrome/browser/devtools/devtools_sanity_browsertest.cc |
| +++ b/chrome/browser/devtools/devtools_sanity_browsertest.cc |
| @@ -388,9 +388,7 @@ class DevToolsBeforeUnloadTest: public DevToolsSanityTest { |
| ASSERT_TRUE(content::ExecuteScript(web_contents->GetRenderViewHost(), |
| "window.addEventListener('beforeunload'," |
| "function(event) { event.returnValue = 'Foo'; });")); |
| - // Disable the hang monitor, otherwise there will be a race between the |
| - // beforeunload dialog and the beforeunload hang timer. |
| - web_contents->GetMainFrame()->DisableBeforeUnloadHangMonitorForTesting(); |
| + content::PrepContentsForBeforeUnloadTest(web_contents); |
|
Nico
2017/05/05 16:36:47
:-)
|
| } |
| void RunBeforeUnloadSanityTest(bool is_docked, |