| Index: rlz/win/lib/registry_util.cc
|
| diff --git a/rlz/win/lib/registry_util.cc b/rlz/win/lib/registry_util.cc
|
| index e5b7298aaab7e9afb1345c98f4e20be2c74d3a2d..61197d2239f17c6e13f175adfdd253e8e25e7338 100644
|
| --- a/rlz/win/lib/registry_util.cc
|
| +++ b/rlz/win/lib/registry_util.cc
|
| @@ -16,7 +16,7 @@
|
|
|
| namespace rlz_lib {
|
|
|
| -bool RegKeyReadValue(base::win::RegKey& key, const wchar_t* name,
|
| +bool RegKeyReadValue(const base::win::RegKey& key, const wchar_t* name,
|
| char* value, size_t* value_size) {
|
| value[0] = 0;
|
|
|
| @@ -36,10 +36,10 @@ bool RegKeyReadValue(base::win::RegKey& key, const wchar_t* name,
|
| return true;
|
| }
|
|
|
| -bool RegKeyWriteValue(base::win::RegKey& key, const wchar_t* name,
|
| +bool RegKeyWriteValue(base::win::RegKey* key, const wchar_t* name,
|
| const char* value) {
|
| - std::wstring value_string(base::ASCIIToWide(value));
|
| - return key.WriteValue(name, value_string.c_str()) == ERROR_SUCCESS;
|
| + base::string16 value_string(base::ASCIIToUTF16(value));
|
| + return key->WriteValue(name, value_string.c_str()) == ERROR_SUCCESS;
|
| }
|
|
|
| bool HasUserKeyAccess(bool write_access) {
|
|
|