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

Unified Diff: chrome/common/pref_service.h

Issue 342068: Third patch in getting rid of caching MessageLoop pointers and always using C... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « chrome/common/pref_member_unittest.cc ('k') | chrome/common/pref_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/pref_service.h
===================================================================
--- chrome/common/pref_service.h (revision 30650)
+++ chrome/common/pref_service.h (working copy)
@@ -28,10 +28,6 @@
class NotificationObserver;
class Preference;
-namespace base {
-class Thread;
-}
-
class PrefService : public NonThreadSafe,
public ImportantFileWriter::DataSerializer {
public:
@@ -77,11 +73,8 @@
};
// |pref_filename| is the path to the prefs file we will try to load or save
- // to. Saves will be executed on |backend_thread|. It should be the file
- // thread in Chrome. You can pass NULL for unit tests, and then no separate
- // thread will be used.
- PrefService(const FilePath& pref_filename,
- const base::Thread* backend_thread);
+ // to. Saves will be executed on the file thread.
+ explicit PrefService(const FilePath& pref_filename);
~PrefService();
// Reloads the data from file. This should only be called when the importer
« no previous file with comments | « chrome/common/pref_member_unittest.cc ('k') | chrome/common/pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698