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

Unified Diff: chrome/browser/extensions/api/cookies/cookies_api.cc

Issue 2349823003: Pass a RemovalCause to CookieChangedCallback (Closed)
Patch Set: Merge enums Created 4 years, 3 months 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: chrome/browser/extensions/api/cookies/cookies_api.cc
diff --git a/chrome/browser/extensions/api/cookies/cookies_api.cc b/chrome/browser/extensions/api/cookies/cookies_api.cc
index 16aabadf614b666cc6adf6e721de580570ba7195..9deec298f2ae01155fc0e2f22186c2425b960cce 100644
--- a/chrome/browser/extensions/api/cookies/cookies_api.cc
+++ b/chrome/browser/extensions/api/cookies/cookies_api.cc
@@ -143,23 +143,25 @@ void CookiesEventRouter::CookieChanged(
// Map the internal cause to an external string.
std::string cause;
switch (details->cause) {
- case net::CookieMonsterDelegate::CHANGE_COOKIE_EXPLICIT:
+ case net::CookieStore::CHANGE_COOKIE_INSERTED:
+ case net::CookieStore::CHANGE_COOKIE_UNKNOWN_DELETION:
Devlin 2016/09/26 16:46:09 Is it accurate to lump these two in here? e.g. un
nharper 2016/09/26 21:09:10 I agree that UNKNOWN_DELETION doesn't belong here.
Devlin 2016/09/27 15:48:05 I think that all makes sense - unknown deletion wa
nharper 2016/09/27 17:43:48 Done.
+ case net::CookieStore::CHANGE_COOKIE_EXPLICIT:
cause = keys::kExplicitChangeCause;
break;
- case net::CookieMonsterDelegate::CHANGE_COOKIE_OVERWRITE:
+ case net::CookieStore::CHANGE_COOKIE_OVERWRITE:
cause = keys::kOverwriteChangeCause;
break;
- case net::CookieMonsterDelegate::CHANGE_COOKIE_EXPIRED:
+ case net::CookieStore::CHANGE_COOKIE_EXPIRED:
cause = keys::kExpiredChangeCause;
break;
- case net::CookieMonsterDelegate::CHANGE_COOKIE_EVICTED:
+ case net::CookieStore::CHANGE_COOKIE_EVICTED:
cause = keys::kEvictedChangeCause;
break;
- case net::CookieMonsterDelegate::CHANGE_COOKIE_EXPIRED_OVERWRITE:
+ case net::CookieStore::CHANGE_COOKIE_EXPIRED_OVERWRITE:
cause = keys::kExpiredOverwriteChangeCause;
break;

Powered by Google App Engine
This is Rietveld 408576698