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

Unified Diff: chrome/service/service_process_prefs.cc

Issue 6349029: Get service processes working on Mac and Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix up small typo in comment Created 9 years, 11 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/service/service_process_prefs.h ('k') | ipc/ipc_channel_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_process_prefs.cc
diff --git a/chrome/service/service_process_prefs.cc b/chrome/service/service_process_prefs.cc
index 182b92f32d565ea077d272418c9c428241062394..d0e479688f5bc3226a3fdfd773402f93861668a0 100644
--- a/chrome/service/service_process_prefs.cc
+++ b/chrome/service/service_process_prefs.cc
@@ -9,43 +9,43 @@
ServiceProcessPrefs::ServiceProcessPrefs(
const FilePath& pref_filename,
base::MessageLoopProxy* file_message_loop_proxy)
- : prefs_(pref_filename, file_message_loop_proxy) {
+ : prefs_(new JsonPrefStore(pref_filename, file_message_loop_proxy)) {
}
void ServiceProcessPrefs::ReadPrefs() {
- prefs_.ReadPrefs();
+ prefs_->ReadPrefs();
}
void ServiceProcessPrefs::WritePrefs() {
- prefs_.WritePrefs();
+ prefs_->WritePrefs();
}
void ServiceProcessPrefs::GetString(const std::string& key,
std::string* result) {
Value* value;
- if (prefs_.GetValue(key, &value) == PersistentPrefStore::READ_OK)
+ if (prefs_->GetValue(key, &value) == PersistentPrefStore::READ_OK)
value->GetAsString(result);
}
void ServiceProcessPrefs::SetString(const std::string& key,
const std::string& value) {
- prefs_.SetValue(key, Value::CreateStringValue(value));
+ prefs_->SetValue(key, Value::CreateStringValue(value));
}
void ServiceProcessPrefs::GetBoolean(const std::string& key, bool* result) {
Value* value;
- if (prefs_.GetValue(key, &value) == PersistentPrefStore::READ_OK)
+ if (prefs_->GetValue(key, &value) == PersistentPrefStore::READ_OK)
value->GetAsBoolean(result);
}
void ServiceProcessPrefs::SetBoolean(const std::string& key, bool value) {
- prefs_.SetValue(key, Value::CreateBooleanValue(value));
+ prefs_->SetValue(key, Value::CreateBooleanValue(value));
}
void ServiceProcessPrefs::GetDictionary(const std::string& key,
DictionaryValue** result) {
Value* value;
- if (prefs_.GetValue(key, &value) != PersistentPrefStore::READ_OK ||
+ if (prefs_->GetValue(key, &value) != PersistentPrefStore::READ_OK ||
!value->IsType(Value::TYPE_DICTIONARY)) {
return;
}
« no previous file with comments | « chrome/service/service_process_prefs.h ('k') | ipc/ipc_channel_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698