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

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 77440)
+++ 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();
asargent_no_longer_on_chrome 2011/03/09 18:13:01 The code before was waiting for the file loop to r
Paweł Hajdan Jr. 2011/03/09 18:22:14 There can be only one MessageLoop per thread. My i
asargent_no_longer_on_chrome 2011/03/09 18:33:25 But it was registering file_loop as the message lo
Paweł Hajdan Jr. 2011/03/09 20:40:03 After a more detailed look I think MessageLoop::cu
}
extension_pref_value_map_.reset(new ExtensionPrefValueMap);
« no previous file with comments | « chrome/browser/extensions/extension_updater_unittest.cc ('k') | chrome/browser/profiles/profile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698