DescriptionChange HostContentSettingsMap::SetContentSetting to use GURLs instead of patterns
A new version of SetContentSetting which takes GURLs as parameters. The patterns
are determined by WebsiteSettingsInfo::ScopingType from the ContentSettingsType.
Developers can directly pass in GURLs to decrease errors and inconsistency.
Will incrementally change all the callsites of SetContentSetting to use the new
version in the following CLs.
BUG=551747
Committed: https://crrev.com/48657c27ec55dc003cdad3e2472db8a3553ab3c4
Cr-Commit-Position: refs/heads/master@{#378960}
Patch Set 1 #Patch Set 2 : extract GetPatternsFromScopingType() to get patterns from scoping types #Patch Set 3 : add SetContentSettingCustomScope #Patch Set 4 : change to use primary_url and secondary_url #Patch Set 5 : fix trybot bugs #Patch Set 6 : change to host_content_settings_map #Patch Set 7 : add migrate method #
Total comments: 4
Patch Set 8 : divide the CL and change to use DefaultScope in unit tests #
Total comments: 5
Patch Set 9 : address review comments #
Total comments: 2
Patch Set 10 : minor change in comments #
Dependent Patchsets: Messages
Total messages: 25 (14 generated)
|