summaryrefslogtreecommitdiffstats
path: root/net/http/http_response_headers.cc
diff options
context:
space:
mode:
authormichaelbai@google.com <michaelbai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-07 18:18:45 +0000
committermichaelbai@google.com <michaelbai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-07 18:18:45 +0000
commit0592261f09341e187a94c5c14052c198ff683b00 (patch)
tree7c9617063ce4102bc7fb93b8cb7f0a6921b53a4c /net/http/http_response_headers.cc
parent8527643cf39257d388fa9bbd04b081c8d8fa0bf1 (diff)
downloadchromium_src-0592261f09341e187a94c5c14052c198ff683b00.zip
chromium_src-0592261f09341e187a94c5c14052c198ff683b00.tar.gz
chromium_src-0592261f09341e187a94c5c14052c198ff683b00.tar.bz2
Upstream android net related code (part 2)
Add std:: to find() and replace() calls BUG= TEST= Review URL: http://codereview.chromium.org/7273081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers.cc')
-rw-r--r--net/http/http_response_headers.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc
index 47047c9..9b7ffc2 100644
--- a/net/http/http_response_headers.cc
+++ b/net/http/http_response_headers.cc
@@ -329,7 +329,7 @@ void HttpResponseHeaders::Parse(const std::string& raw_input) {
// ParseStatusLine adds a normalized status line to raw_headers_
std::string::const_iterator line_begin = raw_input.begin();
std::string::const_iterator line_end =
- find(line_begin, raw_input.end(), '\0');
+ std::find(line_begin, raw_input.end(), '\0');
// has_headers = true, if there is any data following the status line.
// Used by ParseStatusLine() to decide if a HTTP/0.9 is really a HTTP/1.0.
bool has_headers = (line_end != raw_input.end() &&
@@ -457,7 +457,7 @@ std::string HttpResponseHeaders::GetStatusText() const {
std::string::const_iterator begin = status_text.begin();
std::string::const_iterator end = status_text.end();
for (int i = 0; i < 2; ++i)
- begin = find(begin, end, ' ') + 1;
+ begin = std::find(begin, end, ' ') + 1;
return std::string(begin, end);
}
@@ -557,7 +557,7 @@ HttpVersion HttpResponseHeaders::ParseVersion(
return HttpVersion();
}
- std::string::const_iterator dot = find(p, line_end, '.');
+ std::string::const_iterator dot = std::find(p, line_end, '.');
if (dot == line_end) {
DVLOG(1) << "malformed version";
return HttpVersion();
@@ -604,7 +604,7 @@ void HttpResponseHeaders::ParseStatusLine(
}
// TODO(eroman): this doesn't make sense if ParseVersion failed.
- std::string::const_iterator p = find(line_begin, line_end, ' ');
+ std::string::const_iterator p = std::find(line_begin, line_end, ' ');
if (p == line_end) {
DVLOG(1) << "missing response status; assuming 200 OK";