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

Unified Diff: net/http/http_content_disposition.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
« no previous file with comments | « net/cookies/cookie_util.cc ('k') | net/http/http_security_headers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_content_disposition.cc
diff --git a/net/http/http_content_disposition.cc b/net/http/http_content_disposition.cc
index 06f815be923253e36a1e33d937297f15403f1290..0e830f609bc8e3a1c0de8944731b181b1849dd06 100644
--- a/net/http/http_content_disposition.cc
+++ b/net/http/http_content_disposition.cc
@@ -34,11 +34,11 @@ bool DecodeQEncoding(const std::string& input, std::string* output) {
temp.push_back(' ');
} else if (*it == '=') {
if ((input.end() - it < 3) ||
- !IsHexDigit(static_cast<unsigned char>(*(it + 1))) ||
- !IsHexDigit(static_cast<unsigned char>(*(it + 2))))
+ !base::IsHexDigit(static_cast<unsigned char>(*(it + 1))) ||
+ !base::IsHexDigit(static_cast<unsigned char>(*(it + 2))))
return false;
- unsigned char ch = HexDigitToInt(*(it + 1)) * 16 +
- HexDigitToInt(*(it + 2));
+ unsigned char ch =
+ base::HexDigitToInt(*(it + 1)) * 16 + base::HexDigitToInt(*(it + 2));
temp.push_back(static_cast<char>(ch));
++it;
++it;
« no previous file with comments | « net/cookies/cookie_util.cc ('k') | net/http/http_security_headers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698