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

Unified Diff: pdf/document_loader.cc

Issue 1493503002: base: get rid of deprecated TrimWhitespace() function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 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 | « net/test/python_utils_unittest.cc ('k') | ui/base/clipboard/clipboard_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/document_loader.cc
diff --git a/pdf/document_loader.cc b/pdf/document_loader.cc
index 868a8c4ce4f1367f6a011101efe453a8813c6557..5bbed1a020a27fc600b4f399dc06995b9ac40f7e 100644
--- a/pdf/document_loader.cc
+++ b/pdf/document_loader.cc
@@ -36,8 +36,8 @@ bool GetByteRange(const std::string& headers, uint32_t* start, uint32_t* end) {
std::string range_end;
if (pos != std::string::npos)
range_end = range.substr(pos + 1);
- TrimWhitespaceASCII(range, base::TRIM_LEADING, &range);
- TrimWhitespaceASCII(range_end, base::TRIM_LEADING, &range_end);
+ base::TrimWhitespaceASCII(range, base::TRIM_LEADING, &range);
+ base::TrimWhitespaceASCII(range_end, base::TRIM_LEADING, &range_end);
*start = atoi(range.c_str());
*end = atoi(range_end.c_str());
return true;
@@ -145,7 +145,7 @@ bool DocumentLoader::Init(const pp::URLLoader& loader,
if (semi_colon_pos != std::string::npos) {
type = type.substr(0, semi_colon_pos);
}
- TrimWhitespace(type, base::TRIM_ALL, &type);
+ TrimWhitespaceASCII(type, base::TRIM_ALL, &type);
} else if (base::LowerCaseEqualsASCII(it.name(), "content-disposition")) {
disposition = it.values();
}
« no previous file with comments | « net/test/python_utils_unittest.cc ('k') | ui/base/clipboard/clipboard_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698