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

Unified Diff: chrome/browser/extensions/test_extension_environment.cc

Issue 16133011: Run the MessageLoop longer in order to clear out extra DeleteSoon()s. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/test_extension_environment.cc
diff --git a/chrome/browser/extensions/test_extension_environment.cc b/chrome/browser/extensions/test_extension_environment.cc
index 5d207de932e33b5dd43fa7e6055d8ffbb2f31af6..4ff5e9377a19bee40a5e91944d9f11868c856ce9 100644
--- a/chrome/browser/extensions/test_extension_environment.cc
+++ b/chrome/browser/extensions/test_extension_environment.cc
@@ -38,9 +38,7 @@ TestExtensionEnvironment::~TestExtensionEnvironment() {
profile_.reset();
// Delete the profile, and then cycle the message loop to clear
// out delayed deletions.
- base::RunLoop run_loop;
- loop_.PostTask(FROM_HERE, run_loop.QuitClosure());
- run_loop.Run();
+ base::RunLoop().RunUntilIdle();
}
TestingProfile* TestExtensionEnvironment::profile() const {
« no previous file with comments | « no previous file | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698