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

Unified Diff: chrome/browser/browsing_data/browsing_data_cookie_helper.cc

Issue 124183002: Implement delete methods for the various CannedBrowsingDataHelpers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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/browsing_data/browsing_data_cookie_helper.cc
diff --git a/chrome/browser/browsing_data/browsing_data_cookie_helper.cc b/chrome/browser/browsing_data/browsing_data_cookie_helper.cc
index 5551642305c64c7e7ae487c4b0216f64bfc5136a..3d65a87a07192c1c2cf1a80575ea34bfd7a877e4 100644
--- a/chrome/browser/browsing_data/browsing_data_cookie_helper.cc
+++ b/chrome/browser/browsing_data/browsing_data_cookie_helper.cc
@@ -187,6 +187,16 @@ void CannedBrowsingDataCookieHelper::StartFetching(
callback.Run(cookie_list);
}
+void CannedBrowsingDataCookieHelper::DeleteCookie(
+ const net::CanonicalCookie& cookie) {
+ for (OriginCookieListMap::iterator it = origin_cookie_list_map_.begin();
+ it != origin_cookie_list_map_.end();
+ ++it) {
+ DeleteMatchingCookie(cookie, it->second);
+ }
+ BrowsingDataCookieHelper::DeleteCookie(cookie);
+}
+
bool CannedBrowsingDataCookieHelper::DeleteMatchingCookie(
const net::CanonicalCookie& add_cookie,
net::CookieList* cookie_list) {

Powered by Google App Engine
This is Rietveld 408576698