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

Unified Diff: chrome/service/service_process_prefs.cc

Issue 10968031: Added ConnectorSettings class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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') | no next file » | 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 511709a7d8f5d5893f0f78d4a6c2b516bf62f24f..b925e2bed8d6926cba7c8a365e6c75636048433d 100644
--- a/chrome/service/service_process_prefs.cc
+++ b/chrome/service/service_process_prefs.cc
@@ -23,7 +23,7 @@ void ServiceProcessPrefs::WritePrefs() {
}
void ServiceProcessPrefs::GetString(const std::string& key,
- std::string* result) {
+ std::string* result) const {
const Value* value;
if (prefs_->GetValue(key, &value) == PersistentPrefStore::READ_OK)
value->GetAsString(result);
@@ -34,7 +34,8 @@ void ServiceProcessPrefs::SetString(const std::string& key,
prefs_->SetValue(key, Value::CreateStringValue(value));
}
-void ServiceProcessPrefs::GetBoolean(const std::string& key, bool* result) {
+void ServiceProcessPrefs::GetBoolean(const std::string& key,
+ bool* result) const {
const Value* value;
if (prefs_->GetValue(key, &value) == PersistentPrefStore::READ_OK)
value->GetAsBoolean(result);
@@ -45,7 +46,7 @@ void ServiceProcessPrefs::SetBoolean(const std::string& key, bool value) {
}
void ServiceProcessPrefs::GetDictionary(const std::string& key,
- const DictionaryValue** result) {
+ const DictionaryValue** result) const {
const Value* value;
if (prefs_->GetValue(key, &value) != PersistentPrefStore::READ_OK ||
!value->IsType(Value::TYPE_DICTIONARY)) {
« no previous file with comments | « chrome/service/service_process_prefs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698