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

Unified Diff: android_webview/browser/net/aw_cookie_store_wrapper.cc

Issue 2349823003: Pass a RemovalCause to CookieChangedCallback (Closed)
Patch Set: rebase 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/cookies/cookies_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/net/aw_cookie_store_wrapper.cc
diff --git a/android_webview/browser/net/aw_cookie_store_wrapper.cc b/android_webview/browser/net/aw_cookie_store_wrapper.cc
index a8cb4ca9a2a5476487b2cf557b6b8bc62b082775..ee82835643eb36cb7a02476aefca09cdbaf64057 100644
--- a/android_webview/browser/net/aw_cookie_store_wrapper.cc
+++ b/android_webview/browser/net/aw_cookie_store_wrapper.cc
@@ -70,10 +70,11 @@ class SubscriptionWrapper {
url, name, base::Bind(&NestedSubscription::OnChanged, this));
}
- void OnChanged(const net::CanonicalCookie& cookie, bool removed) {
+ void OnChanged(const net::CanonicalCookie& cookie,
+ net::CookieStore::ChangeCause cause) {
client_task_runner_->PostTask(
FROM_HERE, base::Bind(&SubscriptionWrapper::OnChanged,
- subscription_wrapper_, cookie, removed));
+ subscription_wrapper_, cookie, cause));
}
base::WeakPtr<SubscriptionWrapper> subscription_wrapper_;
@@ -84,8 +85,9 @@ class SubscriptionWrapper {
DISALLOW_COPY_AND_ASSIGN(NestedSubscription);
};
- void OnChanged(const net::CanonicalCookie& cookie, bool removed) {
- callback_list_.Notify(cookie, removed);
+ void OnChanged(const net::CanonicalCookie& cookie,
+ net::CookieStore::ChangeCause cause) {
+ callback_list_.Notify(cookie, cause);
}
// The "list" only had one entry, so can just clean up now.
« no previous file with comments | « no previous file | chrome/browser/extensions/api/cookies/cookies_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698