Chromium Code Reviews| Index: net/cookies/parsed_cookie.cc |
| diff --git a/net/cookies/parsed_cookie.cc b/net/cookies/parsed_cookie.cc |
| index 6d82d9ec8d91ca5343e90402e6d3abdfcd3e8ff2..5a11863f48a023e920672149e1cc15b9d09dca4a 100644 |
| --- a/net/cookies/parsed_cookie.cc |
| +++ b/net/cookies/parsed_cookie.cc |
| @@ -137,7 +137,7 @@ bool IsValidCookieValue(const std::string& value) { |
| } |
| bool IsControlCharacter(unsigned char c) { |
| - return (c >= 0) && (c <= 31); |
| + return c <= 31; // unsigned char is always >= 0. |
|
Ryan Sleevi
2014/10/17 19:17:10
just nuke this comment
|
| } |
| bool IsValidCookieAttributeValue(const std::string& value) { |