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

Side by Side Diff: chrome/service/service_process_prefs.cc

Issue 11027070: Moved JsonPrefStore to use SequencedWorkerPool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/service/service_process_prefs.h" 5 #include "chrome/service/service_process_prefs.h"
6 6
7 #include "base/message_loop_proxy.h"
7 #include "base/values.h" 8 #include "base/values.h"
8 9
9 ServiceProcessPrefs::ServiceProcessPrefs( 10 ServiceProcessPrefs::ServiceProcessPrefs(
10 const FilePath& pref_filename, 11 const FilePath& pref_filename,
11 base::MessageLoopProxy* file_message_loop_proxy) 12 base::SequencedWorkerPool* blocking_pool)
12 : prefs_(new JsonPrefStore(pref_filename, file_message_loop_proxy)) { 13 : prefs_(JsonPrefStore::CreateWithBlockingPool(pref_filename,
14 blocking_pool)) {
willchan no longer on Chromium 2012/10/17 23:41:19 indent is off
13 } 15 }
14 16
15 ServiceProcessPrefs::~ServiceProcessPrefs() {} 17 ServiceProcessPrefs::~ServiceProcessPrefs() {}
16 18
17 void ServiceProcessPrefs::ReadPrefs() { 19 void ServiceProcessPrefs::ReadPrefs() {
18 prefs_->ReadPrefs(); 20 prefs_->ReadPrefs();
19 } 21 }
20 22
21 void ServiceProcessPrefs::WritePrefs() { 23 void ServiceProcessPrefs::WritePrefs() {
22 prefs_->CommitPendingWrite(); 24 prefs_->CommitPendingWrite();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 79 }
78 80
79 void ServiceProcessPrefs::SetValue(const std::string& key, base::Value* value) { 81 void ServiceProcessPrefs::SetValue(const std::string& key, base::Value* value) {
80 prefs_->SetValue(key, value); 82 prefs_->SetValue(key, value);
81 } 83 }
82 84
83 void ServiceProcessPrefs::RemovePref(const std::string& key) { 85 void ServiceProcessPrefs::RemovePref(const std::string& key) {
84 prefs_->RemoveValue(key); 86 prefs_->RemoveValue(key);
85 } 87 }
86 88
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698