Index: chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc |
diff --git a/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc b/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc |
index b5ec124eaf578c25ae19ee82d34c7d70d048f555..b31153844f9b150fa1763ea3464a35e749604bf0 100644 |
--- a/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc |
+++ b/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc |
@@ -126,7 +126,7 @@ class CloudPrintURLFetcherTest : public testing::Test, |
// Deleting the fetcher causes a task to be posted to the IO thread to |
// release references to the URLRequestContextGetter. We need to run all |
// pending tasks to execute that (this is the IO thread). |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
EXPECT_EQ(0, g_request_context_getter_instances); |
} |