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

Unified Diff: remoting/host/usage_stats_consent_win.cc

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 years, 9 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
Index: remoting/host/usage_stats_consent_win.cc
diff --git a/remoting/host/usage_stats_consent_win.cc b/remoting/host/usage_stats_consent_win.cc
index fa7345bd6baf3eb3341c69994cfb96aa3aefee60..fea38538b5a77c3cac2343f3864d52032a8d88d8 100644
--- a/remoting/host/usage_stats_consent_win.cc
+++ b/remoting/host/usage_stats_consent_win.cc
@@ -25,9 +25,9 @@ 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);
+ std::wstring client_state = base::StringPrintf(kOmahaClientStateKeyFormat,
+ state_key,
+ remoting::kHostOmahaAppid);
base::win::RegKey key;
LONG result = key.Open(HKEY_LOCAL_MACHINE, client_state.c_str(), KEY_READ);
if (result != ERROR_SUCCESS) {
@@ -73,9 +73,9 @@ bool IsUsageStatsAllowed() {
bool SetUsageStatsConsent(bool allowed) {
DWORD value = allowed;
// presubmit: allow wstring
- std::wstring client_state = StringPrintf(kOmahaClientStateKeyFormat,
- kOmahaClientStateMedium,
- kHostOmahaAppid);
+ std::wstring client_state = base::StringPrintf(kOmahaClientStateKeyFormat,
+ kOmahaClientStateMedium,
+ kHostOmahaAppid);
base::win::RegKey key;
LONG result = key.Create(HKEY_LOCAL_MACHINE, client_state.c_str(),
KEY_SET_VALUE);

Powered by Google App Engine
This is Rietveld 408576698