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

Unified Diff: remoting/host/policy_hack/policy_watcher_win.cc

Issue 121123002: Update uses of UTF conversions in ppapi/, printing/, remoting/, rlz/, sandbox/, skia/, sql/, sync/,… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « remoting/host/plugin/host_script_object.cc ('k') | remoting/host/setup/daemon_controller_delegate_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/policy_hack/policy_watcher_win.cc
diff --git a/remoting/host/policy_hack/policy_watcher_win.cc b/remoting/host/policy_hack/policy_watcher_win.cc
index 83f67430d8aae5f9017d2f969d54d715ed343640..89816d4bd4cbed9bc04ee7d2332743fdb24f23cd 100644
--- a/remoting/host/policy_hack/policy_watcher_win.cc
+++ b/remoting/host/policy_hack/policy_watcher_win.cc
@@ -115,13 +115,13 @@ class PolicyWatcherWin :
bool GetRegistryPolicyString(const std::string& value_name,
std::string* result) const {
// presubmit: allow wstring
- std::wstring value_name_wide = UTF8ToWide(value_name);
+ std::wstring value_name_wide = base::UTF8ToWide(value_name);
// presubmit: allow wstring
std::wstring value;
RegKey policy_key(HKEY_LOCAL_MACHINE, kRegistrySubKey, KEY_READ);
if (policy_key.ReadValue(value_name_wide.c_str(), &value) ==
ERROR_SUCCESS) {
- *result = WideToUTF8(value);
+ *result = base::WideToUTF8(value);
return true;
}
@@ -129,7 +129,7 @@ class PolicyWatcherWin :
ERROR_SUCCESS) {
if (policy_key.ReadValue(value_name_wide.c_str(), &value) ==
ERROR_SUCCESS) {
- *result = WideToUTF8(value);
+ *result = base::WideToUTF8(value);
return true;
}
}
@@ -139,7 +139,7 @@ class PolicyWatcherWin :
bool GetRegistryPolicyInteger(const std::string& value_name,
uint32* result) const {
// presubmit: allow wstring
- std::wstring value_name_wide = UTF8ToWide(value_name);
+ std::wstring value_name_wide = base::UTF8ToWide(value_name);
DWORD value = 0;
RegKey policy_key(HKEY_LOCAL_MACHINE, kRegistrySubKey, KEY_READ);
if (policy_key.ReadValueDW(value_name_wide.c_str(), &value) ==
« no previous file with comments | « remoting/host/plugin/host_script_object.cc ('k') | remoting/host/setup/daemon_controller_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698