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

Unified Diff: net/cookies/canonical_cookie.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: net/cookies/canonical_cookie.h
diff --git a/net/cookies/canonical_cookie.h b/net/cookies/canonical_cookie.h
index a78eece41988159740c214ecb7d7968a7b9bad06..27dfd2b4daef4be5f0b6c491a8ba826de32332ed 100644
--- a/net/cookies/canonical_cookie.h
+++ b/net/cookies/canonical_cookie.h
@@ -82,8 +82,7 @@ class NET_EXPORT CanonicalCookie {
bool IsSecure() const { return secure_; }
bool IsHttpOnly() const { return httponly_; }
CookiePriority Priority() const { return priority_; }
- bool IsDomainCookie() const {
- return !domain_.empty() && domain_[0] == '.'; }
+ bool IsDomainCookie() const { return !domain_.empty() && domain_[0] == '.'; }
bool IsHostCookie() const { return !IsDomainCookie(); }
bool IsExpired(const base::Time& current) const {
@@ -100,13 +99,11 @@ class NET_EXPORT CanonicalCookie {
// It seems like it would make sense to take secure and httponly into
// account, but the RFC doesn't specify this.
// NOTE: Keep this logic in-sync with TrimDuplicateCookiesForHost().
- return (name_ == ecc.Name() && domain_ == ecc.Domain()
- && path_ == ecc.Path());
+ return (name_ == ecc.Name() && domain_ == ecc.Domain() &&
+ path_ == ecc.Path());
}
- void SetLastAccessDate(const base::Time& date) {
- last_access_date_ = date;
- }
+ void SetLastAccessDate(const base::Time& date) { last_access_date_ = date; }
// Returns true if the given |url_path| path-matches the cookie-path as
// described in section 5.1.4 in RFC 6265.

Powered by Google App Engine
This is Rietveld 408576698