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

Unified Diff: device/udev_linux/udev.cc

Issue 1200053004: Move more string_util functions to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: device/udev_linux/udev.cc
diff --git a/device/udev_linux/udev.cc b/device/udev_linux/udev.cc
index e2b93d2751667eaa61e559c038674ad1d234d913..6055fb9db0dcdadb50250cf1347ee3ee7a499ebd 100644
--- a/device/udev_linux/udev.cc
+++ b/device/udev_linux/udev.cc
@@ -171,8 +171,8 @@ std::string UdevDecodeString(const std::string& encoded) {
for (size_t i = 0; i < size; ++i) {
char c = encoded[i];
if ((i + 3 < size) && c == '\\' && encoded[i + 1] == 'x') {
- c = (HexDigitToInt(encoded[i + 2]) << 4) +
- HexDigitToInt(encoded[i + 3]);
+ c = (base::HexDigitToInt(encoded[i + 2]) << 4) +
+ base::HexDigitToInt(encoded[i + 3]);
i += 3;
}
decoded.push_back(c);
« no previous file with comments | « device/bluetooth/bluetooth_uuid.cc ('k') | extensions/browser/api/networking_config/networking_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698