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

Unified Diff: content/child/npapi/plugin_host.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
Index: content/child/npapi/plugin_host.cc
diff --git a/content/child/npapi/plugin_host.cc b/content/child/npapi/plugin_host.cc
index 4f3006e0faf31a1b1ec0fced12df43aba4da9aa1..7f03896c7e93b3d0369d1dc2a60de33a5356b6c2 100644
--- a/content/child/npapi/plugin_host.cc
+++ b/content/child/npapi/plugin_host.cc
@@ -259,7 +259,7 @@ bool PluginHost::SetPostData(const char* buf,
case GETNAME:
// Got a value.
value = std::string(start, ptr - start);
- base::TrimWhitespace(value, base::TRIM_ALL, &value);
+ base::TrimWhitespaceASCII(value, base::TRIM_ALL, &value);
// If the name field is empty, we'll skip this header
// but we won't error out.
if (!name.empty() && name != "content-length") {
@@ -271,7 +271,7 @@ bool PluginHost::SetPostData(const char* buf,
case GETVALUE:
// Got a header.
name = base::ToLowerASCII(base::StringPiece(start, ptr - start));
- base::TrimWhitespace(name, base::TRIM_ALL, &name);
+ base::TrimWhitespaceASCII(name, base::TRIM_ALL, &name);
start = ptr + 1;
break;
case GETDATA: {
« no previous file with comments | « components/safe_browsing_db/prefix_set_unittest.cc ('k') | content/renderer/npapi/webplugin_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698