Chromium Code Reviews
DescriptionRename SetContentSetting() to SetContentSettingCustomScope()
We made a SetContentSettingDefaultScope() which takes GURLs directly and generate
patterns inside of the method. This is what most developers will want to use when
setting content settings. The original SetContentSetting(), which takes patterns,
is renamed to SetContentSettingCustomScope() to make it more clear to developers.
This method is only used for custom-scoped setting in tests or special cases.
To rename it, first use command:
grep -rl 'SetContentSetting(' ./* | xargs sed -i
's/SetContentSetting(/SetContentSettingcustomScope(/g'
to find out all the call sites of SetContentSetting() and rename them. Then give
a review of each case and minor changes are made to fix few exceptions.
BUG=551747
TBR= mlamouri@chromium.org, peter@chromium.org, miu@chromium.org
Committed: https://crrev.com/21436c16b59a70f1b41b1c3571981f8420d83d8e
Cr-Commit-Position: refs/heads/master@{#385636}
Patch Set 1 #Patch Set 2 : fix comment alignment #
Total comments: 4
Patch Set 3 : change two cases to use SetDefaultContentSetting #
Total comments: 1
Patch Set 4 : rebase #Patch Set 5 : some more change after rebase #
Total comments: 2
Patch Set 6 : minor change #Messages
Total messages: 25 (11 generated)
|