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

Issue 2221143003: Formalize the restrictions of BrowsingDataRemover::RemoveWithFilter() (Closed)

Created:
4 years, 4 months ago by msramek
Modified:
4 years, 4 months ago
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Formalize the restrictions of BrowsingDataRemover::RemoveWithFilter() Only some of the datatypes in BrowsingDataRemover currently support per-URL (/ per-origin / per-domain) filtering. This is currently noted in a comment next to the RemoveWithFilter() method. This CL formalizes which datatypes are filterable and DCHECKS if RemoveWithFilter() is used with an unsupported type. In addition, this CL adds a guildeline on adding new browsing data types. The motivation is the upcoming launch of the Clear-Site-Data header which needs to handle filtering of REMOVE_CACHE and REMOVE_SITE_DATA*. We want to ensure that developers won't add new data storage backends falling into these buckets without properly handing them. These guidelines should be enforced in code reviews. This CL immediately applies the guidelines for the zero suggest cache. [*] REMOVE_PLUGIN_DATA filtering is still not implemented as of this CL. BUG=589586 Committed: https://crrev.com/549dfeeb8e66aa91e05abe927dbe699ef4124b2c Cr-Commit-Position: refs/heads/master@{#412208}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Rebase (switch to my Android checkout). #

Patch Set 3 : Addressed comments, fixed Android. #

Total comments: 2

Patch Set 4 : Explicit task count. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -17 lines) Patch
M chrome/browser/android/preferences/pref_service_bridge.cc View 1 2 3 3 chunks +44 lines, -12 lines 2 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 4 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 40 (28 generated)
msramek
Hello fellow browsing_data/ owners, What do you think about this? It's becoming very difficult to ...
4 years, 4 months ago (2016-08-09 17:50:52 UTC) #7
Bernhard Bauer
lgtm https://codereview.chromium.org/2221143003/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/2221143003/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode352 chrome/browser/browsing_data/browsing_data_remover.cc:352: DCHECK_EQ(FILTERABLE_DATATYPES, remove_mask | FILTERABLE_DATATYPES); Nit: If you changed ...
4 years, 4 months ago (2016-08-10 14:22:14 UTC) #10
msramek
Thanks, Bernhard! I addressed your comments, but I realized that the red Android tests came ...
4 years, 4 months ago (2016-08-11 13:11:02 UTC) #17
Bernhard Bauer
https://codereview.chromium.org/2221143003/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/2221143003/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode1036 chrome/browser/browsing_data/browsing_data_remover.cc:1036: // another server round-trip; no data are actually lost. ...
4 years, 4 months ago (2016-08-11 13:25:43 UTC) #18
msramek
https://codereview.chromium.org/2221143003/diff/80001/chrome/browser/android/preferences/pref_service_bridge.cc File chrome/browser/android/preferences/pref_service_bridge.cc (right): https://codereview.chromium.org/2221143003/diff/80001/chrome/browser/android/preferences/pref_service_bridge.cc#newcode525 chrome/browser/android/preferences/pref_service_bridge.cc:525: : task_count_(2), On 2016/08/11 13:25:43, Bernhard Bauer wrote: > ...
4 years, 4 months ago (2016-08-11 14:17:14 UTC) #29
Bernhard Bauer
lgtm https://codereview.chromium.org/2221143003/diff/120001/chrome/browser/android/preferences/pref_service_bridge.cc File chrome/browser/android/preferences/pref_service_bridge.cc (right): https://codereview.chromium.org/2221143003/diff/120001/chrome/browser/android/preferences/pref_service_bridge.cc#newcode673 chrome/browser/android/preferences/pref_service_bridge.cc:673: env, obj, browsing_data_remover, 2 /* tasks_count */); I ...
4 years, 4 months ago (2016-08-11 15:16:16 UTC) #32
msramek
https://codereview.chromium.org/2221143003/diff/120001/chrome/browser/android/preferences/pref_service_bridge.cc File chrome/browser/android/preferences/pref_service_bridge.cc (right): https://codereview.chromium.org/2221143003/diff/120001/chrome/browser/android/preferences/pref_service_bridge.cc#newcode673 chrome/browser/android/preferences/pref_service_bridge.cc:673: env, obj, browsing_data_remover, 2 /* tasks_count */); On 2016/08/11 ...
4 years, 4 months ago (2016-08-11 15:36:31 UTC) #33
dmurph
lgtm
4 years, 4 months ago (2016-08-15 17:42:43 UTC) #34
msramek
Thanks! I'll land this now (I'm not waiting for other people's LGTM since this CL ...
4 years, 4 months ago (2016-08-16 09:59:12 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2221143003/120001
4 years, 4 months ago (2016-08-16 09:59:28 UTC) #37
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years, 4 months ago (2016-08-16 10:36:00 UTC) #38
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 10:38:00 UTC) #40
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/549dfeeb8e66aa91e05abe927dbe699ef4124b2c
Cr-Commit-Position: refs/heads/master@{#412208}

Powered by Google App Engine
This is Rietveld 408576698