diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 17:08:53 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-16 17:08:53 +0000 |
commit | d09803392aa5d88e85fc441aa1d93703a62e93a9 (patch) | |
tree | b548381fa9c5ce4b939647bbbde178612ac3dbc3 /net/base/cookie_options.h | |
parent | ba78486b0a8e15bbb1b6c5a1e9adf46f2e76d52a (diff) | |
download | chromium_src-d09803392aa5d88e85fc441aa1d93703a62e93a9.zip chromium_src-d09803392aa5d88e85fc441aa1d93703a62e93a9.tar.gz chromium_src-d09803392aa5d88e85fc441aa1d93703a62e93a9.tar.bz2 |
Make sure a cookie can be deleted, even when forced to session only.
BUG=63258
TEST=net_unittests --gtest_filter=CookieMonsterTest.ForceSessionOnly
Review URL: http://codereview.chromium.org/4967004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_options.h')
-rw-r--r-- | net/base/cookie_options.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/base/cookie_options.h b/net/base/cookie_options.h index 8ace523..203adaf 100644 --- a/net/base/cookie_options.h +++ b/net/base/cookie_options.h @@ -24,7 +24,9 @@ class CookieOptions { void set_include_httponly() { exclude_httponly_ = false; } bool exclude_httponly() const { return exclude_httponly_; } - // Forces a cookie to be saved as a session cookie. + // Forces a cookie to be saved as a session cookie. If the expiration time of + // the cookie is in the past, i.e. the cookie would end up being deleted, this + // option is ignored. See CookieMonsterTest.ForceSessionOnly. void set_force_session() { force_session_ = true; } bool force_session() const { return force_session_; } |