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

Issue 2612903005: Remove the content settings dependencies from BrowsingDataFilterBuilder et al. (Closed)

Created:
3 years, 11 months ago by msramek
Modified:
3 years, 11 months ago
Reviewers:
Mike West, Maria
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the content settings dependencies from BrowsingDataFilterBuilder et al. As a part of BrowsingDataRemover's migration to //content, we will also need to move the auxiliary classes such as BrowsingDataFilterBuilder and its subclasses. This is currently not possible, as BrowsingDataFilterBuilder has a dependency on content settings, which are a //chrome feature. As splitting the BrowsingDataFilterBuilder and its subclasses into //content and //chrome versions would be an overkill, we choose a simpler approach, where ChromeBrowsingDataRemoverDelegate contains an adapter to convert origin-scoped content settings patterns to a GURL, which is then used with a regular GURL filter. Note that a domain-scoped content settings pattern cannot be converted to a GURL, which means we lose the ability to delete those patterns. However, this functionality was added only for completeness; none of the website settings or content settings supported by ChromeBrowsingDataRemoverDelegate uses domain-scoped patterns. This is verified using a DCHECK. We remove the associated tests for content settings pattern filters. The current functionality of website settings and content settings deletion is still covered by BrowsingDataRemoverTest and by GURL filter tests of BrowsingDataFilterBuilder subclasses. Finally, remove one instance of the content settings pattern filter from WebsitePreferenceBridge. This can be replaced by simply setting a NULL value in HostContentSettingsMap. BUG=668114 Review-Url: https://codereview.chromium.org/2612903005 Cr-Commit-Position: refs/heads/master@{#442538} Committed: https://chromium.googlesource.com/chromium/src/+/dc0c3729d77398a6a36eb717f51b5a56bcad38dc

Patch Set 1 #

Patch Set 2 : Fixed WebsitePreferenceBridge #

Total comments: 2

Messages

Total messages: 25 (18 generated)
msramek
Hi Mike! Happy new year! Please have a look at this when you're back from ...
3 years, 11 months ago (2017-01-05 17:07:22 UTC) #11
Mike West
LGTM assuming the answer to my question is something like "It turns into a no-op, ...
3 years, 11 months ago (2017-01-09 08:53:48 UTC) #12
msramek
Thanks Mike! +Maria, can you have a look at the change in website_preference_bridge.cc? I could ...
3 years, 11 months ago (2017-01-09 09:39:43 UTC) #14
Maria
lgtm
3 years, 11 months ago (2017-01-10 07:05:07 UTC) #19
msramek
Thanks!
3 years, 11 months ago (2017-01-10 09:25:10 UTC) #20
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/2612903005/20001
3 years, 11 months ago (2017-01-10 09:25:30 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 09:29:40 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/dc0c3729d77398a6a36eb717f51b...

Powered by Google App Engine
This is Rietveld 408576698