Index: chrome/browser/profiles/profile_info_cache_unittest.cc |
diff --git a/chrome/browser/profiles/profile_info_cache_unittest.cc b/chrome/browser/profiles/profile_info_cache_unittest.cc |
index 61f1c104c329c8a5c7a2a0ec2317166ce9092d66..4906fb4393361a1cbe85bbefe8c6c50bd20051ba 100644 |
--- a/chrome/browser/profiles/profile_info_cache_unittest.cc |
+++ b/chrome/browser/profiles/profile_info_cache_unittest.cc |
@@ -95,7 +95,7 @@ void ProfileInfoCacheTest::SetUp() { |
void ProfileInfoCacheTest::TearDown() { |
// Drain the UI thread to make sure all tasks are completed. This prevents |
// memory leaks. |
- ui_loop_.RunAllPending(); |
+ ui_loop_.RunUntilIdle(); |
} |
ProfileInfoCache* ProfileInfoCacheTest::GetCache() { |