Index: chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc |
diff --git a/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc b/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc |
index 8f6ea5225d706e15e180b8c14e197241257e68cb..68005ff8823b4622a07716e8bc401964a1ad8270 100644 |
--- a/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc |
+++ b/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc |
@@ -429,7 +429,7 @@ ProfileKeyedService* TestCloudPrintProxyServiceFactory(Profile* profile) { |
service->GetMockServiceProcessControl()->SetWillBeDisabledExpectations(); |
service->Initialize(); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
return service; |
} |
@@ -447,5 +447,5 @@ TEST_F(CloudPrintProxyPolicyTest, StartupBrowserCreatorWithCommandLine) { |
command_line.AppendSwitch(switches::kCheckCloudPrintConnectorPolicy); |
EXPECT_FALSE(LaunchBrowser(command_line, &profile_)); |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
} |