Index: chrome/browser/chromeos/login/lock/screen_locker_browsertest.cc |
diff --git a/chrome/browser/chromeos/login/lock/screen_locker_browsertest.cc b/chrome/browser/chromeos/login/lock/screen_locker_browsertest.cc |
index fb398bbf7d92e7970178c9f76917f5a36033495c..c3bbabe52f42a8446a3df33740fcdf587f8cd5ed 100644 |
--- a/chrome/browser/chromeos/login/lock/screen_locker_browsertest.cc |
+++ b/chrome/browser/chromeos/login/lock/screen_locker_browsertest.cc |
@@ -62,7 +62,7 @@ class Waiter : public content::NotificationObserver { |
DCHECK(type == chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED || |
type == chrome::NOTIFICATION_FULLSCREEN_CHANGED); |
if (running_) |
- base::MessageLoop::current()->Quit(); |
+ base::MessageLoop::current()->QuitWhenIdle(); |
} |
// Wait until the two conditions are met. |