summaryrefslogtreecommitdiffstats
path: root/net/base/cookie_monster.cc
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 23:56:23 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 23:56:23 +0000
commit4e637d218c79304fb852ac500c0c4ee21756c6b8 (patch)
treee05d0093f2a41a728cb51efb381b5b221365b24a /net/base/cookie_monster.cc
parent867f856c7d42ec02b348c2d2a92fba2bd2c95ceb (diff)
downloadchromium_src-4e637d218c79304fb852ac500c0c4ee21756c6b8.zip
chromium_src-4e637d218c79304fb852ac500c0c4ee21756c6b8.tar.gz
chromium_src-4e637d218c79304fb852ac500c0c4ee21756c6b8.tar.bz2
Revert 38694 - For some reason this seems to be hanging chrome frame tests, even though this should be a strictly no-op change...
Add some tests to CookieMonster for overwriting persistent cookies, and checking that the PersistentCookieStore interface is exercised correctly. Review URL: http://codereview.chromium.org/600040 TBR=eroman@chromium.org Review URL: http://codereview.chromium.org/596048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38707 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_monster.cc')
-rw-r--r--net/base/cookie_monster.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/base/cookie_monster.cc b/net/base/cookie_monster.cc
index 87ab1bd..595bf06 100644
--- a/net/base/cookie_monster.cc
+++ b/net/base/cookie_monster.cc
@@ -90,6 +90,14 @@ void CookieMonster::EnableFileScheme() {
enable_file_scheme_ = true;
}
+CookieMonster::CookieMonster()
+ : initialized_(false),
+ store_(NULL),
+ last_access_threshold_(
+ TimeDelta::FromSeconds(kDefaultAccessUpdateThresholdSeconds)) {
+ SetDefaultCookieableSchemes();
+}
+
CookieMonster::CookieMonster(PersistentCookieStore* store)
: initialized_(false),
store_(store),