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

Unified Diff: net/base/net_util.cc

Issue 183853011: Move TrimWhitespace to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/base/ip_mapping_rules.cc ('k') | net/ftp/ftp_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util.cc
diff --git a/net/base/net_util.cc b/net/base/net_util.cc
index a373432a0a4f3d6e92b1cba600dd57d3bc028be7..9e1ebe55f5049b1432bf17ae54b5b52333440936 100644
--- a/net/base/net_util.cc
+++ b/net/base/net_util.cc
@@ -767,7 +767,7 @@ void SanitizeGeneratedFileName(base::FilePath::StringType* filename,
size_t length = filename->size();
size_t pos = filename->find_last_not_of(FILE_PATH_LITERAL(" ."));
filename->resize((pos == std::string::npos) ? 0 : (pos + 1));
- TrimWhitespace(*filename, TRIM_TRAILING, filename);
+ base::TrimWhitespace(*filename, base::TRIM_TRAILING, filename);
if (filename->empty())
return;
size_t trimmed = length - filename->size();
@@ -1058,8 +1058,9 @@ std::string GetSpecificHeader(const std::string& headers,
begin += match.length();
std::string ret;
- TrimWhitespace(std::string(begin, std::find(begin, headers.end(), '\n')),
- TRIM_ALL, &ret);
+ base::TrimWhitespace(std::string(begin,
+ std::find(begin, headers.end(), '\n')),
+ base::TRIM_ALL, &ret);
return ret;
}
« no previous file with comments | « net/base/ip_mapping_rules.cc ('k') | net/ftp/ftp_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698