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

Unified Diff: net/cookies/cookie_monster.cc

Issue 2595703002: Expand net::CookieStore::ChangeCause::EXPLICIT for debugging. (Closed)
Patch Set: better names for enum values Created 4 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
Index: net/cookies/cookie_monster.cc
diff --git a/net/cookies/cookie_monster.cc b/net/cookies/cookie_monster.cc
index b656d83e6c078a0594dfd3c0f76d87ca0ea78488..1b812c1d0282be1fcdc9d6d2b6633398f2287f92 100644
--- a/net/cookies/cookie_monster.cc
+++ b/net/cookies/cookie_monster.cc
@@ -274,7 +274,7 @@ typedef struct ChangeCausePair_struct {
} ChangeCausePair;
const ChangeCausePair kChangeCauseMapping[] = {
// DELETE_COOKIE_EXPLICIT
- {CookieStore::ChangeCause::EXPLICIT, true},
+ {CookieStore::ChangeCause::EXPLICIT_DELETE, true},
// DELETE_COOKIE_OVERWRITE
{CookieStore::ChangeCause::OVERWRITE, true},
// DELETE_COOKIE_EXPIRED
@@ -282,9 +282,9 @@ const ChangeCausePair kChangeCauseMapping[] = {
// DELETE_COOKIE_EVICTED
{CookieStore::ChangeCause::EVICTED, true},
// DELETE_COOKIE_DUPLICATE_IN_BACKING_STORE
- {CookieStore::ChangeCause::EXPLICIT, false},
+ {CookieStore::ChangeCause::EXPLICIT_DUPLICATE_IN_BACKING_STORE, false},
// DELETE_COOKIE_DONT_RECORD
- {CookieStore::ChangeCause::EXPLICIT, false},
+ {CookieStore::ChangeCause::EXPLICIT_DONT_RECORD, false},
// DELETE_COOKIE_EVICTED_DOMAIN
{CookieStore::ChangeCause::EVICTED, true},
// DELETE_COOKIE_EVICTED_GLOBAL
@@ -300,7 +300,7 @@ const ChangeCausePair kChangeCauseMapping[] = {
// DELETE_COOKIE_NON_SECURE
{CookieStore::ChangeCause::EVICTED, true},
// DELETE_COOKIE_LAST_ENTRY
- {CookieStore::ChangeCause::EXPLICIT, false}};
+ {CookieStore::ChangeCause::EXPLICIT_LAST_ENTRY, false}};
void RunAsync(scoped_refptr<base::TaskRunner> proxy,
const CookieStore::CookieChangedCallback& callback,
« no previous file with comments | « components/signin/core/browser/gaia_cookie_manager_service.cc ('k') | net/cookies/cookie_monster_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698