diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-11 03:02:51 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-11 03:02:51 +0000 |
commit | 57ecc4bf4069cb869e5fb0a7d922eec2384bac25 (patch) | |
tree | 1b4668fa59d6b6a072144b4ddab8d5f6faba3fa4 /chrome/test/testing_pref_service.cc | |
parent | 1af19cfd7b1ef9924516dbe811db495315feaefe (diff) | |
download | chromium_src-57ecc4bf4069cb869e5fb0a7d922eec2384bac25.zip chromium_src-57ecc4bf4069cb869e5fb0a7d922eec2384bac25.tar.gz chromium_src-57ecc4bf4069cb869e5fb0a7d922eec2384bac25.tar.bz2 |
Make prefs use std::string for keys rather than wstrings.
Much remains to be converted.
BUG=23581
TEST=builds and passes tests
Review URL: http://codereview.chromium.org/3076037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55660 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_pref_service.cc')
-rw-r--r-- | chrome/test/testing_pref_service.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/test/testing_pref_service.cc b/chrome/test/testing_pref_service.cc index 067b8b9..81d04e8 100644 --- a/chrome/test/testing_pref_service.cc +++ b/chrome/test/testing_pref_service.cc @@ -28,45 +28,45 @@ TestingPrefService::TestingPrefService() NULL)) { } -const Value* TestingPrefService::GetManagedPref(const wchar_t* path) { +const Value* TestingPrefService::GetManagedPref(const char* path) { return GetPref(managed_prefs_, path); } -void TestingPrefService::SetManagedPref(const wchar_t* path, Value* value) { +void TestingPrefService::SetManagedPref(const char* path, Value* value) { SetPref(managed_prefs_, path, value); } -void TestingPrefService::RemoveManagedPref(const wchar_t* path) { +void TestingPrefService::RemoveManagedPref(const char* path) { RemovePref(managed_prefs_, path); } -const Value* TestingPrefService::GetUserPref(const wchar_t* path) { +const Value* TestingPrefService::GetUserPref(const char* path) { return GetPref(user_prefs_, path); } -void TestingPrefService::SetUserPref(const wchar_t* path, Value* value) { +void TestingPrefService::SetUserPref(const char* path, Value* value) { SetPref(user_prefs_, path, value); } -void TestingPrefService::RemoveUserPref(const wchar_t* path) { +void TestingPrefService::RemoveUserPref(const char* path) { RemovePref(user_prefs_, path); } const Value* TestingPrefService::GetPref(PrefStore* pref_store, - const wchar_t* path) { + const char* path) { Value* result; return pref_store->prefs()->Get(path, &result) ? result : NULL; } void TestingPrefService::SetPref(PrefStore* pref_store, - const wchar_t* path, + const char* path, Value* value) { pref_store->prefs()->Set(path, value); FireObservers(path); } void TestingPrefService::RemovePref(PrefStore* pref_store, - const wchar_t* path) { + const char* path) { pref_store->prefs()->Remove(path, NULL); FireObservers(path); } |