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

Unified Diff: chrome/browser/extensions/test_extension_prefs.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/extensions/test_extension_prefs.cc
===================================================================
--- chrome/browser/extensions/test_extension_prefs.cc (revision 77169)
+++ chrome/browser/extensions/test_extension_prefs.cc (working copy)
@@ -65,10 +65,8 @@
// The PrefService writes its persistent file on the file thread, so we
// need to wait for any pending I/O to complete before creating a new
// PrefService.
- MessageLoop file_loop;
- BrowserThread file_thread(BrowserThread::FILE, &file_loop);
pref_service_->SavePersistentPrefs();
- file_loop.RunAllPending();
+ MessageLoop::current()->RunAllPending();
}
extension_pref_value_map_.reset(new ExtensionPrefValueMap);

Powered by Google App Engine
This is Rietveld 408576698