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

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

Issue 10824166: Cleaned up usage of std::wstring in src/remoting. Added presubmit warning supressions for the reman… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 4 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 | « remoting/host/plugin/daemon_installer_win.cc ('k') | remoting/host/usage_stats_consent_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 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);
« no previous file with comments | « remoting/host/plugin/daemon_installer_win.cc ('k') | remoting/host/usage_stats_consent_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698