| Index: chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
 | 
| diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
 | 
| index f08f5fe72a0dc71174b99c818a6aa38b4f20126d..17e53b87900434aaa5835ce04cf40000d444cd65 100644
 | 
| --- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
 | 
| +++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc
 | 
| @@ -289,7 +289,7 @@ class TestMessageLoopCondition {
 | 
|    void Signal() {
 | 
|      signaled_ = true;
 | 
|      if (waiting_)
 | 
| -      base::MessageLoop::current()->Quit();
 | 
| +      base::MessageLoop::current()->QuitWhenIdle();
 | 
|    }
 | 
|  
 | 
|    // Pause execution and recursively run the message loop until |Signal()| is
 | 
| @@ -437,9 +437,9 @@ class LocalDiscoveryUITest : public WebUIBrowserTest {
 | 
|    }
 | 
|  
 | 
|    void RunFor(base::TimeDelta time_period) {
 | 
| -    base::CancelableCallback<void()> callback(base::Bind(
 | 
| -        &base::MessageLoop::Quit, base::Unretained(
 | 
| -            base::MessageLoop::current())));
 | 
| +    base::CancelableCallback<void()> callback(
 | 
| +        base::Bind(&base::MessageLoop::QuitWhenIdle,
 | 
| +                   base::Unretained(base::MessageLoop::current())));
 | 
|      base::MessageLoop::current()->task_runner()->PostDelayedTask(
 | 
|          FROM_HERE, callback.callback(), time_period);
 | 
|  
 | 
| 
 |