Chromium Code Reviews| Index: net/cookies/cookie_monster.h |
| diff --git a/net/cookies/cookie_monster.h b/net/cookies/cookie_monster.h |
| index 8eef2bab926bb95fbceb746e12c7d770b663e479..7b238d5715d5e67fd31af18a693767e44280d641 100644 |
| --- a/net/cookies/cookie_monster.h |
| +++ b/net/cookies/cookie_monster.h |
| @@ -192,9 +192,8 @@ class NET_EXPORT CookieMonster : public CookieStore { |
| // arbitrary cookies. |
| void SetKeepExpiredCookies(); |
| - // Delegates the call to set the |clear_local_store_on_exit_| flag of the |
| - // PersistentStore if it exists. |
| - void SetClearPersistentStoreOnExit(bool clear_local_store); |
| + // Protects session cookies from deletion on shutdown. |
| + void SaveSessionCookies(); |
|
erikwright (departed)
2012/05/31 18:02:02
Let this start with Set, and match the name in the
|
| // There are some unknowns about how to correctly handle file:// cookies, |
| // and our implementation for this is not robust enough. This allows you |
| @@ -255,9 +254,6 @@ class NET_EXPORT CookieMonster : public CookieStore { |
| // (i.e. as part of the instance initialization process). |
| void SetPersistSessionCookies(bool persist_session_cookies); |
| - // Protects session cookies from deletion on shutdown. |
| - void SaveSessionCookies(); |
| - |
| // Debugging method to perform various validation checks on the map. |
| // Currently just checking that there are no null CanonicalCookie pointers |
| // in the map. |
| @@ -952,9 +948,8 @@ class CookieMonster::PersistentCookieStore |
| virtual void UpdateCookieAccessTime(const CanonicalCookie& cc) = 0; |
| virtual void DeleteCookie(const CanonicalCookie& cc) = 0; |
| - // Sets the value of the user preference whether the persistent storage |
| - // must be deleted upon destruction. |
| - virtual void SetClearLocalStateOnExit(bool clear_local_state) = 0; |
| + // Instructs the store to not discard session only cookies on shutdown. |
| + virtual void SetKeepSessionCookies() = 0; |
| // Flushes the store and posts |callback| when complete. |
| virtual void Flush(const base::Closure& callback) = 0; |