Chromium Code Reviews
DescriptionRemove 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)
|