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

Unified Diff: net/base/cookie_monster_store_test.h

Issue 5430004: Refactored cookies persistent store clean-up on shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Lock protected the clear on exit flag. Created 10 years 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 | « net/base/cookie_monster.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/cookie_monster_store_test.h
diff --git a/net/base/cookie_monster_store_test.h b/net/base/cookie_monster_store_test.h
index 8a21930f1426fa3c7384920cbab6e6fe7a290264..65c91b725501fa50c4cb65a3f47ecdd3b355b5a8 100644
--- a/net/base/cookie_monster_store_test.h
+++ b/net/base/cookie_monster_store_test.h
@@ -66,6 +66,9 @@ class MockPersistentCookieStore
CookieStoreCommand(CookieStoreCommand::REMOVE, cookie));
}
+ // No files are created so nothing to clear either
+ virtual void SetClearLocalStateOnExit(bool clear_local_state) {}
+
void SetLoadExpectation(
bool return_value,
const std::vector<net::CookieMonster::CanonicalCookie*>& result) {
@@ -185,6 +188,8 @@ class MockSimplePersistentCookieStore
cookies_.erase(it);
}
+ virtual void SetClearLocalStateOnExit(bool clear_local_state) {}
+
private:
CanonicalCookieMap cookies_;
};
« no previous file with comments | « net/base/cookie_monster.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698