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

Issue 1844243002: [CookieStore] Upgrading host-based deleting to predicate-based deleting. (Closed)

Created:
4 years, 8 months ago by dmurph
Modified:
4 years, 8 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, wjmaclean
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CookieStore] Upgrading host-based deleting to predicate-based deleting. This patch removes the DeleteAllCreatedBetweenForHostAsync callpath in favor of using a predicate. The current callers of the host version are migrated to using the predicate, with the new StoragePartitionImpl::CreatePredicateForHostCookies helper method. It looks like the DeleteAllCreatedBetweenForHostAsync codepath is is only used by unittests and extensions. The current client (storage partition) is being changed in the following patch here: https://codereview.chromium.org/1741123002 to expose the predicate functionality as well. After fully supporting the filter functionality in our BrowsingDataRemover, we can remove all notions of the single-host or single-origin based clearing, and migrate data_deleter.cc in extensions to use the predicate method. R=mkwst@chromium.org,brettw@chromium.org BUG=589586, 578162 Committed: https://crrev.com/faea244c3351a6e7f7f4939deb28646fef5e6bb8 Cr-Commit-Position: refs/heads/master@{#386262}

Patch Set 1 #

Patch Set 2 : Added android changes #

Total comments: 14

Patch Set 3 : comments, and ios #

Total comments: 6

Patch Set 4 : Comments, ios fix #

Patch Set 5 : fix IOS #

Total comments: 4

Patch Set 6 : removed url-based deletion on ios #

Total comments: 4

Patch Set 7 : ios fixes #

Patch Set 8 : Added back old test data, fixing windows build error #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+410 lines, -278 lines) Patch
M android_webview/browser/net/aw_cookie_store_wrapper.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M android_webview/browser/net/aw_cookie_store_wrapper.cc View 1 2 3 4 5 2 chunks +12 lines, -12 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 5 6 7 5 chunks +20 lines, -4 lines 0 comments Download
M content/browser/storage_partition_impl_unittest.cc View 1 2 3 2 chunks +31 lines, -0 lines 0 comments Download
M ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm View 1 2 3 4 5 6 7 8 5 chunks +16 lines, -29 lines 0 comments Download
M ios/net/cookies/cookie_store_ios.h View 1 chunk +4 lines, -4 lines 0 comments Download
M ios/net/cookies/cookie_store_ios.mm View 1 2 3 4 3 chunks +24 lines, -21 lines 0 comments Download
M ios/net/cookies/cookie_store_ios_unittest.mm View 1 chunk +6 lines, -6 lines 0 comments Download
M net/cookies/cookie_monster.h View 4 chunks +13 lines, -8 lines 0 comments Download
M net/cookies/cookie_monster.cc View 1 2 3 chunks +42 lines, -50 lines 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +158 lines, -99 lines 0 comments Download
M net/cookies/cookie_store.h View 1 2 3 chunks +13 lines, -12 lines 0 comments Download
M net/cookies/cookie_store.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M net/cookies/cookie_store_test_helpers.h View 1 chunk +4 lines, -4 lines 0 comments Download
M net/cookies/cookie_store_test_helpers.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M net/cookies/cookie_store_unittest.h View 1 2 3 chunks +48 lines, -18 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 54 (24 generated)
dmurph
Hello, These are the cookie store changes, which remove the host-deletion path in favor of ...
4 years, 8 months ago (2016-03-31 00:59:17 UTC) #1
Mike West
Thank you for splitting this out. A few comments on //net/cookies. Perhaps marq@ could take ...
4 years, 8 months ago (2016-04-01 07:40:52 UTC) #3
marq (ping after 24h)
ios/ LGTM.
4 years, 8 months ago (2016-04-01 08:28:13 UTC) #4
Torne
android_webview LGTM
4 years, 8 months ago (2016-04-01 11:36:08 UTC) #5
dmurph
I removed some now-unnecessary tests. https://codereview.chromium.org/1844243002/diff/20001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1844243002/diff/20001/content/browser/storage_partition_impl.cc#newcode69 content/browser/storage_partition_impl.cc:69: cookie_store->DeleteAllCreatedBetweenWithPredicateAsync( On 2016/04/01 at ...
4 years, 8 months ago (2016-04-01 23:16:46 UTC) #6
Mike West
Thanks for taking another pass. //net/cookies LGTM. https://codereview.chromium.org/1844243002/diff/40001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1844243002/diff/40001/content/browser/storage_partition_impl.cc#newcode76 content/browser/storage_partition_impl.cc:76: cookie_store->DeleteAllCreatedBetweenWithPredicateAsync( Nit: ...
4 years, 8 months ago (2016-04-02 05:12:40 UTC) #7
dmurph
https://codereview.chromium.org/1844243002/diff/40001/content/browser/storage_partition_impl.cc File content/browser/storage_partition_impl.cc (right): https://codereview.chromium.org/1844243002/diff/40001/content/browser/storage_partition_impl.cc#newcode76 content/browser/storage_partition_impl.cc:76: cookie_store->DeleteAllCreatedBetweenWithPredicateAsync( On 2016/04/02 at 05:12:40, Mike West (OOO through ...
4 years, 8 months ago (2016-04-04 18:28:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844243002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844243002/60001
4 years, 8 months ago (2016-04-04 18:30:02 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/164222)
4 years, 8 months ago (2016-04-04 18:45:12 UTC) #14
dmurph
Whoops, I still need brettw@ for approval of: content/browser/storage_partition_impl.cc content/browser/storage_partition_impl.h content/browser/storage_partition_impl_unittest.cc ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm
4 years, 8 months ago (2016-04-04 19:04:15 UTC) #15
dmurph
+droger for ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm +sievers for content/browser/* Can you guys PTAL?
4 years, 8 months ago (2016-04-04 23:14:33 UTC) #17
droger
https://codereview.chromium.org/1844243002/diff/80001/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm File ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm (right): https://codereview.chromium.org/1844243002/diff/80001/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm#newcode135 ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm:135: RemoveImpl(remove_mask, GURL()); It seems that the only call to ...
4 years, 8 months ago (2016-04-05 12:24:27 UTC) #18
dmurph
https://codereview.chromium.org/1844243002/diff/80001/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm File ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm (right): https://codereview.chromium.org/1844243002/diff/80001/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm#newcode135 ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm:135: RemoveImpl(remove_mask, GURL()); On 2016/04/05 at 12:24:27, droger wrote: > ...
4 years, 8 months ago (2016-04-05 18:35:20 UTC) #19
droger
lgtm https://codereview.chromium.org/1844243002/diff/100001/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h File ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h (right): https://codereview.chromium.org/1844243002/diff/100001/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h#newcode202 ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h:202: const GURL& storage_url); Update this too.
4 years, 8 months ago (2016-04-05 19:15:38 UTC) #20
droger
https://codereview.chromium.org/1844243002/diff/100001/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm File ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm (right): https://codereview.chromium.org/1844243002/diff/100001/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm#newcode41 ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm:41: #include "net/cookies/canonical_cookie.h" This may not be needed.
4 years, 8 months ago (2016-04-05 19:17:30 UTC) #21
dmurph
https://codereview.chromium.org/1844243002/diff/100001/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h File ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h (right): https://codereview.chromium.org/1844243002/diff/100001/ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h#newcode202 ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h:202: const GURL& storage_url); On 2016/04/05 at 19:15:38, droger wrote: ...
4 years, 8 months ago (2016-04-05 22:15:54 UTC) #22
dmurph
Whoops, for some reason I didn't add sievers@. Can you PTAL? +sievers for content/browser/*
4 years, 8 months ago (2016-04-06 02:05:07 UTC) #24
dmurph
+michaeln for storage_partition_impl domain knowledge review +devlin from the extension team, as the storage partition ...
4 years, 8 months ago (2016-04-06 22:10:36 UTC) #26
michaeln
lgtm2
4 years, 8 months ago (2016-04-06 22:50:47 UTC) #28
michaeln
On 2016/04/06 22:50:47, michaeln wrote: lgtm 2
4 years, 8 months ago (2016-04-06 22:51:18 UTC) #29
no sievers
lgtm since you chatted with devlin@, but please update the comment saying that the codepath ...
4 years, 8 months ago (2016-04-06 23:05:22 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844243002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844243002/120001
4 years, 8 months ago (2016-04-06 23:17:32 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/206962)
4 years, 8 months ago (2016-04-07 03:02:24 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844243002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844243002/140001
4 years, 8 months ago (2016-04-07 20:15:02 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_gn/builds/15875) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-07 20:18:34 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844243002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844243002/160001
4 years, 8 months ago (2016-04-07 20:36:28 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/193342)
4 years, 8 months ago (2016-04-07 21:52:52 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844243002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844243002/160001
4 years, 8 months ago (2016-04-08 23:32:02 UTC) #51
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-09 00:42:40 UTC) #52
commit-bot: I haz the power
4 years, 8 months ago (2016-04-09 00:44:13 UTC) #54
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/faea244c3351a6e7f7f4939deb28646fef5e6bb8
Cr-Commit-Position: refs/heads/master@{#386262}

Powered by Google App Engine
This is Rietveld 408576698