diff options
author | zelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-08 04:40:59 +0000 |
---|---|---|
committer | zelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-08 04:40:59 +0000 |
commit | 0de615a09db2bc15d4395063ec9683c1499c59a1 (patch) | |
tree | cadb1ae00204ebd53756a6dbb19d17832cb9fa84 /chrome/service/service_process_prefs.cc | |
parent | 667be6ec365f627ba2a5628cfc8de0054a111b2f (diff) | |
download | chromium_src-0de615a09db2bc15d4395063ec9683c1499c59a1.zip chromium_src-0de615a09db2bc15d4395063ec9683c1499c59a1.tar.gz chromium_src-0de615a09db2bc15d4395063ec9683c1499c59a1.tar.bz2 |
Moved JsonPrefStore to use SequencedWorkerPool instead of FILE thread. The pool also ensures that the same file requests are written in order received and that they block on shutdown.
BUG=153367
TEST=existing unit/browser tests
Review URL: https://codereview.chromium.org/11027070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166603 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/service_process_prefs.cc')
-rw-r--r-- | chrome/service/service_process_prefs.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/service/service_process_prefs.cc b/chrome/service/service_process_prefs.cc index 811647d..e417988 100644 --- a/chrome/service/service_process_prefs.cc +++ b/chrome/service/service_process_prefs.cc @@ -4,12 +4,13 @@ #include "chrome/service/service_process_prefs.h" +#include "base/message_loop_proxy.h" #include "base/values.h" ServiceProcessPrefs::ServiceProcessPrefs( const FilePath& pref_filename, - base::MessageLoopProxy* file_message_loop_proxy) - : prefs_(new JsonPrefStore(pref_filename, file_message_loop_proxy)) { + base::SequencedTaskRunner* task_runner) + : prefs_(new JsonPrefStore(pref_filename, task_runner)) { } ServiceProcessPrefs::~ServiceProcessPrefs() {} |