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

Unified Diff: chrome/browser/chromeos/login/hwid_checker.cc

Issue 102843002: Move RemoveChars, ReplaceChars, TrimString, and TruncateUTF8ToByteSize to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: chrome/browser/chromeos/login/hwid_checker.cc
diff --git a/chrome/browser/chromeos/login/hwid_checker.cc b/chrome/browser/chromeos/login/hwid_checker.cc
index e34bfc7edc78a089c224112e793eeebca345a86d..d004a6ac61dc3c1b2791dc6ec2a34e2e86954fbb 100644
--- a/chrome/browser/chromeos/login/hwid_checker.cc
+++ b/chrome/browser/chromeos/login/hwid_checker.cc
@@ -67,7 +67,7 @@ bool IsCorrectExceptionalHWID(const std::string& hwid) {
if (bom.length() < 2)
return false;
std::string hwid_without_dashes;
- RemoveChars(hwid, "-", &hwid_without_dashes);
+ base::RemoveChars(hwid, "-", &hwid_without_dashes);
LOG_ASSERT(hwid_without_dashes.length() >= 2);
std::string not_checksum =
hwid_without_dashes.substr(0, hwid_without_dashes.length() - 2);
@@ -95,7 +95,7 @@ bool IsCorrectHWIDv3(const std::string& hwid) {
std::string not_checksum, checksum;
if (!RE2::FullMatch(hwid, regex, &not_checksum, &checksum))
return false;
- RemoveChars(not_checksum, "-", &not_checksum);
+ base::RemoveChars(not_checksum, "-", &not_checksum);
return CalculateHWIDv3Checksum(not_checksum) == checksum;
}

Powered by Google App Engine
This is Rietveld 408576698