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 fba75f0b74ee6e6a6495785eaae4882cbb1bdbce..a333911f9ad84b658a2cf167da2812887805c062 100644 |
--- a/remoting/host/policy_hack/policy_watcher_win.cc |
+++ b/remoting/host/policy_hack/policy_watcher_win.cc |
@@ -114,7 +114,9 @@ class PolicyWatcherWin : |
bool GetRegistryPolicyString(const std::string& value_name, |
std::string* result) const { |
+ // presubmit: allow wstring |
std::wstring value_name_wide = 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) == |
@@ -136,6 +138,7 @@ class PolicyWatcherWin : |
bool GetRegistryPolicyInteger(const std::string& value_name, |
uint32* result) const { |
+ // presubmit: allow wstring |
std::wstring value_name_wide = UTF8ToWide(value_name); |
DWORD value = 0; |
RegKey policy_key(HKEY_LOCAL_MACHINE, kRegistrySubKey, KEY_READ); |