Index: chrome/browser/chromeos/login/wizard_controller_browsertest.cc |
diff --git a/chrome/browser/chromeos/login/wizard_controller_browsertest.cc b/chrome/browser/chromeos/login/wizard_controller_browsertest.cc |
index 379fcb583cd7c34d716dbe8bc5002b4910aaeda8..105b763bdb39d51aab7896020603545f06de1179 100644 |
--- a/chrome/browser/chromeos/login/wizard_controller_browsertest.cc |
+++ b/chrome/browser/chromeos/login/wizard_controller_browsertest.cc |
@@ -299,7 +299,7 @@ IN_PROC_BROWSER_TEST_F(WizardControllerFlowTest, |
// Prevent browser launch when the profile is prepared: |
browser_shutdown::SetTryingToQuit(true); |
// Run the tasks posted to complete the login: |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
} |
IN_PROC_BROWSER_TEST_F(WizardControllerFlowTest, ControlFlowResetScreen) { |