From 0de615a09db2bc15d4395063ec9683c1499c59a1 Mon Sep 17 00:00:00 2001 From: "zelidrag@chromium.org" Date: Thu, 8 Nov 2012 04:40:59 +0000 Subject: 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 --- chrome/service/service_process_prefs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/service/service_process_prefs.h') diff --git a/chrome/service/service_process_prefs.h b/chrome/service/service_process_prefs.h index 018ce1d..fdbf22e 100644 --- a/chrome/service/service_process_prefs.h +++ b/chrome/service/service_process_prefs.h @@ -12,16 +12,16 @@ namespace base { class DictionaryValue; class ListValue; +class SequencedTaskRunner; } // Manages persistent preferences for the service process. This is basically a // thin wrapper around JsonPrefStore for more comfortable use. class ServiceProcessPrefs { public: - // |file_message_loop_proxy| is the MessageLoopProxy for a thread on which - // file I/O can be done. + // |sequenced_task_runner| must be a shutdown-blocking task runner. ServiceProcessPrefs(const FilePath& pref_filename, - base::MessageLoopProxy* file_message_loop_proxy); + base::SequencedTaskRunner* task_runner); ~ServiceProcessPrefs(); // Read preferences from the backing file. -- cgit v1.1