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

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

Issue 2349823003: Pass a RemovalCause to CookieChangedCallback (Closed)
Patch Set: Fix compilation errors 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: 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..4eb1eb86baf0e7ded7ba09b74e5c5bd9de4808a2 100644
--- a/android_webview/browser/net/aw_cookie_store_wrapper.cc
+++ b/android_webview/browser/net/aw_cookie_store_wrapper.cc
@@ -70,10 +70,12 @@ class SubscriptionWrapper {
url, name, base::Bind(&NestedSubscription::OnChanged, this));
}
- void OnChanged(const net::CanonicalCookie& cookie, bool removed) {
+ void OnChanged(const net::CanonicalCookie& cookie,
+ bool removed,
+ net::CookieStore::RemovalCause cause) {
client_task_runner_->PostTask(
FROM_HERE, base::Bind(&SubscriptionWrapper::OnChanged,
- subscription_wrapper_, cookie, removed));
+ subscription_wrapper_, cookie, removed, cause));
}
base::WeakPtr<SubscriptionWrapper> subscription_wrapper_;
@@ -84,8 +86,10 @@ 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,
+ bool removed,
+ net::CookieStore::RemovalCause cause) {
+ callback_list_.Notify(cookie, removed, cause);
}
// The "list" only had one entry, so can just clean up now.
« no previous file with comments | « no previous file | components/signin/core/browser/gaia_cookie_manager_service.h » ('j') | net/cookies/cookie_store.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698