Index: chrome/browser/bookmarks/bookmark_html_writer_unittest.cc |
diff --git a/chrome/browser/bookmarks/bookmark_html_writer_unittest.cc b/chrome/browser/bookmarks/bookmark_html_writer_unittest.cc |
index 411c29653ffaee822021667f2491401e37a64a05..ede4e70a71d2f71aa93736d174a158fcdb628020 100644 |
--- a/chrome/browser/bookmarks/bookmark_html_writer_unittest.cc |
+++ b/chrome/browser/bookmarks/bookmark_html_writer_unittest.cc |
@@ -199,7 +199,7 @@ TEST_F(BookmarkHTMLWriterTest, Test) { |
FaviconServiceFactory::GetForProfile( |
&profile, Profile::EXPLICIT_ACCESS)->SetFavicons( |
url1, url1_favicon, history::FAVICON, gfx::Image(bitmap)); |
- message_loop.RunAllPending(); |
+ message_loop.RunUntilIdle(); |
const BookmarkNode* f2 = model->AddFolder(f1, 1, f2_title); |
model->AddURLWithCreationTime(f2, 0, url2_title, url2, t2); |
model->AddURLWithCreationTime(model->bookmark_bar_node(), |
@@ -223,7 +223,7 @@ TEST_F(BookmarkHTMLWriterTest, Test) { |
FaviconServiceFactory::GetForProfile( |
&profile, Profile::EXPLICIT_ACCESS)->SetFavicons( |
url1, url1_favicon, history::FAVICON, gfx::Image()); |
- message_loop.RunAllPending(); |
+ message_loop.RunUntilIdle(); |
// Read the bookmarks back in. |
std::vector<ProfileWriter::BookmarkEntry> parsed_bookmarks; |