summaryrefslogtreecommitdiffstats
path: root/remoting/host/usage_stats_consent_win.cc
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-07 01:32:58 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-07 01:32:58 +0000
commita11dbe9b75e6ec3e4fd8d9878526fa27426d59ad (patch)
treeabe85be335ec148e1d232be881033776c2c20f48 /remoting/host/usage_stats_consent_win.cc
parentcdd4234611a47a064a8b15c2f3a7f47676286cef (diff)
downloadchromium_src-a11dbe9b75e6ec3e4fd8d9878526fa27426d59ad.zip
chromium_src-a11dbe9b75e6ec3e4fd8d9878526fa27426d59ad.tar.gz
chromium_src-a11dbe9b75e6ec3e4fd8d9878526fa27426d59ad.tar.bz2
Cleaned up usage of std::wstring in src/remoting. Added presubmit warning supressions for the remaning instances because they depend on hard-to-change public APIs.
BUG=133003 Review URL: https://chromiumcodereview.appspot.com/10824166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150224 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/usage_stats_consent_win.cc')
-rw-r--r--remoting/host/usage_stats_consent_win.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/remoting/host/usage_stats_consent_win.cc b/remoting/host/usage_stats_consent_win.cc
index cefb1cf..f0d0a1d 100644
--- a/remoting/host/usage_stats_consent_win.cc
+++ b/remoting/host/usage_stats_consent_win.cc
@@ -24,6 +24,7 @@ const wchar_t kOmahaClientStateMedium[] = L"ClientStateMedium";
const wchar_t kOmahaUsagestatsValue[] = L"usagestats";
LONG ReadUsageStatsValue(const wchar_t* state_key, DWORD* usagestats_out) {
+ // presubmit: allow wstring
std::wstring client_state = StringPrintf(kOmahaClientStateKeyFormat,
state_key,
remoting::kHostOmahaAppid);
@@ -71,6 +72,7 @@ bool IsUsageStatsAllowed() {
bool SetUsageStatsConsent(bool allowed) {
DWORD value = allowed;
+ // presubmit: allow wstring
std::wstring client_state = StringPrintf(kOmahaClientStateKeyFormat,
kOmahaClientStateMedium,
kHostOmahaAppid);