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

Issue 1694923004: Use GURLs instead of patterns in SetContentSetting in notifications (Closed)

Created:
4 years, 10 months ago by lshang
Modified:
4 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-permissions_chromium.org, mlamouri+watch-notifications_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@scoping_set_content_setting
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use GURLs instead of patterns in SetContentSetting in notification DesktopNotificationProfileUtil::ClearSetting() is changed to take GURLs directly which internally call HostContentSettingsMap::SetContentSettingDefaultScope(). For case in MessageCenterSettingsController, since the patterns are from user input, SetContentSetting() is used instead of ClearSetting() to take patterns directly. BUG=551747 Committed: https://crrev.com/71deb5f7cacc66ee3c901ac406db75c5f1eb83a4 Cr-Commit-Position: refs/heads/master@{#381608}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : use SetContentSettingDefaultScope #

Patch Set 4 : rebase #

Patch Set 5 : set upstream to master and rebase #

Patch Set 6 : remove changes in ppapi_broker and durable_storage #

Patch Set 7 : remove patterns_ #

Total comments: 1

Patch Set 8 : recover ClearSetting() for user input patterns to use SetContentSetting() directly #

Total comments: 2

Patch Set 9 : add a note #

Total comments: 2

Patch Set 10 : minor change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -35 lines) Patch
M chrome/browser/android/preferences/website_preference_bridge.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_profile_util.h View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_profile_util.cc View 1 2 1 chunk +14 lines, -24 lines 0 comments Download
M chrome/browser/notifications/message_center_settings_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notification_browsertest.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/notifications/notification_permission_context.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
lshang
PTAL thanks!
4 years, 9 months ago (2016-03-08 00:41:12 UTC) #5
raymes
https://codereview.chromium.org/1694923004/diff/120001/chrome/browser/notifications/message_center_settings_controller.cc File chrome/browser/notifications/message_center_settings_controller.cc (left): https://codereview.chromium.org/1694923004/diff/120001/chrome/browser/notifications/message_center_settings_controller.cc#oldcode355 chrome/browser/notifications/message_center_settings_controller.cc:355: DesktopNotificationProfileUtil::ClearSetting(profile, pattern); Hey Liu, I don't fully understand this ...
4 years, 9 months ago (2016-03-09 06:53:49 UTC) #6
lshang
Hi Raymes, could you take a look at this CL again? I changed ClearSetting() for ...
4 years, 9 months ago (2016-03-16 02:27:30 UTC) #8
raymes
lgtm https://codereview.chromium.org/1694923004/diff/140001/chrome/browser/notifications/message_center_settings_controller.cc File chrome/browser/notifications/message_center_settings_controller.cc (right): https://codereview.chromium.org/1694923004/diff/140001/chrome/browser/notifications/message_center_settings_controller.cc#newcode353 chrome/browser/notifications/message_center_settings_controller.cc:353: if (pattern.IsValid()) nit: {} Also, I think we ...
4 years, 9 months ago (2016-03-16 03:17:45 UTC) #9
lshang
+OWNER peter@: please review changes in chrome/browser/notifications/* bauerb@: please review changes in chrome/browser/android/ Thanks! https://codereview.chromium.org/1694923004/diff/140001/chrome/browser/notifications/message_center_settings_controller.cc ...
4 years, 9 months ago (2016-03-16 04:59:14 UTC) #12
Bernhard Bauer
lgtm https://codereview.chromium.org/1694923004/diff/160001/chrome/browser/notifications/message_center_settings_controller.cc File chrome/browser/notifications/message_center_settings_controller.cc (right): https://codereview.chromium.org/1694923004/diff/160001/chrome/browser/notifications/message_center_settings_controller.cc#newcode355 chrome/browser/notifications/message_center_settings_controller.cc:355: // here because pattern may from user manual ...
4 years, 9 months ago (2016-03-16 10:25:22 UTC) #13
Peter Beverloo
lgtm % Bernhard's phrasing comment :)
4 years, 9 months ago (2016-03-16 18:02:36 UTC) #14
lshang
Thanks, Bernhard and Peter!:-) https://codereview.chromium.org/1694923004/diff/160001/chrome/browser/notifications/message_center_settings_controller.cc File chrome/browser/notifications/message_center_settings_controller.cc (right): https://codereview.chromium.org/1694923004/diff/160001/chrome/browser/notifications/message_center_settings_controller.cc#newcode355 chrome/browser/notifications/message_center_settings_controller.cc:355: // here because pattern may ...
4 years, 9 months ago (2016-03-16 23:56:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1694923004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1694923004/180001
4 years, 9 months ago (2016-03-16 23:58:02 UTC) #18
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 9 months ago (2016-03-17 00:41:06 UTC) #20
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 00:42:21 UTC) #22
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/71deb5f7cacc66ee3c901ac406db75c5f1eb83a4
Cr-Commit-Position: refs/heads/master@{#381608}

Powered by Google App Engine
This is Rietveld 408576698