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

Unified Diff: net/cookies/parsed_cookie.cc

Issue 640303008: Remove trivially-true check in parsed_cookie.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/simpler_bug422036
Patch Set: Address sleevi's nit Created 6 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/parsed_cookie.cc
diff --git a/net/cookies/parsed_cookie.cc b/net/cookies/parsed_cookie.cc
index 6d82d9ec8d91ca5343e90402e6d3abdfcd3e8ff2..2c72c3b8cd792670ad93cedf1f0d4f06d7b3b7b7 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;
}
bool IsValidCookieAttributeValue(const std::string& value) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698