summaryrefslogtreecommitdiffstats
path: root/net/base/cookie_policy.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/cookie_policy.h')
-rw-r--r--net/base/cookie_policy.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/base/cookie_policy.h b/net/base/cookie_policy.h
index 6fa6002..89d490b 100644
--- a/net/base/cookie_policy.h
+++ b/net/base/cookie_policy.h
@@ -25,12 +25,11 @@ class CookiePolicy {
enum Type {
ALLOW_ALL_COOKIES = 0, // do not perform any cookie blocking
BLOCK_THIRD_PARTY_COOKIES, // prevent third-party cookies from being sent
- BLOCK_ALL_COOKIES, // disable cookies
- SESSION_COOKIES // expire all cookies at end of session
+ BLOCK_ALL_COOKIES // disable cookies
};
static bool ValidType(int32 type) {
- return type >= ALLOW_ALL_COOKIES && type <= SESSION_COOKIES;
+ return type >= ALLOW_ALL_COOKIES && type <= BLOCK_ALL_COOKIES;
}
static Type FromInt(int32 type) {
@@ -41,9 +40,6 @@ class CookiePolicy {
// preferences change.
void SetType(Type type) { type_ = type; }
- // Get the current policy.
- Type GetType() const { return type_; }
-
CookiePolicy();
private: