| Index: chrome/browser/ui/webui/web_ui_test_handler.cc
 | 
| diff --git a/chrome/browser/ui/webui/web_ui_test_handler.cc b/chrome/browser/ui/webui/web_ui_test_handler.cc
 | 
| index d4e03aabba7aa0e4ab592b4240a8a8ca67d6bae6..a249c1ee9bf93c481b1c5acf796c0a1554f170be 100644
 | 
| --- a/chrome/browser/ui/webui/web_ui_test_handler.cc
 | 
| +++ b/chrome/browser/ui/webui/web_ui_test_handler.cc
 | 
| @@ -61,7 +61,7 @@ void WebUITestHandler::HandleTestResult(const base::ListValue* test_result) {
 | 
|    // Quit the message loop if |is_waiting_| so waiting process can get result or
 | 
|    // error. To ensure this gets done, do this before ASSERT* calls.
 | 
|    if (is_waiting_)
 | 
| -    base::MessageLoopForUI::current()->Quit();
 | 
| +    base::MessageLoopForUI::current()->QuitWhenIdle();
 | 
|  
 | 
|    SCOPED_TRACE("WebUITestHandler::HandleTestResult");
 | 
|  
 | 
| @@ -81,7 +81,7 @@ void WebUITestHandler::JavaScriptComplete(const base::Value* result) {
 | 
|    // Quit the message loop if |is_waiting_| so waiting process can get result or
 | 
|    // error. To ensure this gets done, do this before ASSERT* calls.
 | 
|    if (is_waiting_)
 | 
| -    base::MessageLoopForUI::current()->Quit();
 | 
| +    base::MessageLoopForUI::current()->QuitWhenIdle();
 | 
|  
 | 
|    SCOPED_TRACE("WebUITestHandler::JavaScriptComplete");
 | 
|  
 | 
| 
 |