Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5703)

Unified Diff: chrome/browser/ui/cocoa/browser_test_helper.cc

Issue 6627060: ImportantFileWriter: check return value of PostTask... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/browser_test_helper.cc
===================================================================
--- chrome/browser/ui/cocoa/browser_test_helper.cc (revision 77440)
+++ chrome/browser/ui/cocoa/browser_test_helper.cc (working copy)
@@ -27,12 +27,15 @@
// Delete the testing profile on the UI thread. But first release the
// browser, since it may trigger accesses to the profile upon destruction.
browser_.reset();
+ message_loop_.DeleteSoon(FROM_HERE, profile_.release());
+ // Make sure any pending tasks run before we destroy other threads.
+ message_loop_.RunAllPending();
+
// Drop any new tasks for the IO and FILE threads.
io_thread_.reset();
file_thread_.reset();
- message_loop_.DeleteSoon(FROM_HERE, profile_.release());
message_loop_.RunAllPending();
}

Powered by Google App Engine
This is Rietveld 408576698