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

Unified Diff: rlz/win/lib/machine_deal.cc

Issue 768973003: Cleanup: Get rid of base::ASCIIToWide(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build Created 6 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 | « base/strings/utf_string_conversions.cc ('k') | rlz/win/lib/registry_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/win/lib/machine_deal.cc
diff --git a/rlz/win/lib/machine_deal.cc b/rlz/win/lib/machine_deal.cc
index a12b75c6f15889d86a78eba541be2c6247e53b99..9c83a4c08055b03e07eb619006e1a36f3ebd5702 100644
--- a/rlz/win/lib/machine_deal.cc
+++ b/rlz/win/lib/machine_deal.cc
@@ -21,10 +21,10 @@
#include "rlz/win/lib/registry_util.h"
#include "rlz/win/lib/rlz_value_store_registry.h"
-const wchar_t kDccValueName[] = L"DCC";
-
namespace {
+const wchar_t kDccValueName[] = L"DCC";
+
// Current DCC can only uses [a-zA-Z0-9_-!@$*();.<>,:]
// We will be more liberal and allow some additional chars, but not url meta
// chars.
@@ -117,7 +117,7 @@ bool GetResponseValue(const std::string& response_line,
return true;
}
-} // namespace anonymous
+} // namespace
namespace rlz_lib {
@@ -150,7 +150,7 @@ bool MachineDealCode::Set(const char* dcc) {
// Write the DCC to HKLM. Note that we need to include the null character
// when writing the string.
- if (!RegKeyWriteValue(hklm_key, kDccValueName, normalized_dcc)) {
+ if (!RegKeyWriteValue(&hklm_key, kDccValueName, normalized_dcc)) {
ASSERT_STRING("MachineDealCode::Set: Could not write the DCC value");
return false;
}
« no previous file with comments | « base/strings/utf_string_conversions.cc ('k') | rlz/win/lib/registry_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698