Index: net/test/url_request/url_request_mock_http_job.cc |
diff --git a/net/test/url_request/url_request_mock_http_job.cc b/net/test/url_request/url_request_mock_http_job.cc |
index 297d0ffb5a3405d6a36782e94ec9eaaa2809681c..c4efa6aa0255c1bb1466985287bbb909947c8fe7 100644 |
--- a/net/test/url_request/url_request_mock_http_job.cc |
+++ b/net/test/url_request/url_request_mock_http_job.cc |
@@ -189,9 +189,10 @@ void URLRequestMockHTTPJob::Start() { |
void URLRequestMockHTTPJob::SetHeadersAndStart(const std::string& raw_headers) { |
raw_headers_ = raw_headers; |
// Handle CRLF line-endings. |
- ReplaceSubstringsAfterOffset(&raw_headers_, 0, "\r\n", "\n"); |
+ base::ReplaceSubstringsAfterOffset(&raw_headers_, 0, "\r\n", "\n"); |
// ParseRawHeaders expects \0 to end each header line. |
- ReplaceSubstringsAfterOffset(&raw_headers_, 0, "\n", std::string("\0", 1)); |
+ base::ReplaceSubstringsAfterOffset( |
+ &raw_headers_, 0, "\n", base::StringPiece("\0", 1)); |
URLRequestFileJob::Start(); |
} |