| Index: chrome/browser/extensions/api/web_request/web_request_api_helpers.cc
|
| diff --git a/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc b/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc
|
| index df425e665e16675d72c2a7d8fa32da39240b83b4..80860db72d64f6045e3a2730bb80e106b5d123f7 100644
|
| --- a/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc
|
| +++ b/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc
|
| @@ -1242,15 +1242,4 @@ void NotifyWebRequestAPIUsed(
|
| }
|
| }
|
|
|
| -bool IsValidHeaderName(const std::string& name) {
|
| - // Check whether the header name is RFC 2616-compliant.
|
| - return net::HttpUtil::IsToken(name);
|
| -}
|
| -
|
| -bool IsValidHeaderValue(const std::string& value) {
|
| - // Just a sanity check: disallow NUL and CRLF.
|
| - return value.find('\0') == std::string::npos &&
|
| - value.find("\r\n") == std::string::npos;
|
| -}
|
| -
|
| } // namespace extension_web_request_api_helpers
|
|
|