Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index de5b3d43bd7cf991f420eb8482afe418e9b91709..1adff17cdaf4dfada47314a6c45c03076940ef2d 100644 |
--- a/chrome/test/base/testing_profile.cc |
+++ b/chrome/test/base/testing_profile.cc |
@@ -651,7 +651,7 @@ void TestingProfile::BlockUntilHistoryIndexIsRefreshed() { |
return; |
base::RunLoop run_loop; |
HistoryIndexRestoreObserver observer( |
- content::GetQuitTaskForRunLoop(&run_loop)); |
+ content::GetDeferredQuitTaskForRunLoop(&run_loop)); |
index->set_restore_cache_observer(&observer); |
run_loop.Run(); |
index->set_restore_cache_observer(NULL); |