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

Issue 2020063003: Use GetPermissionStatus instead of DesktopNotificationProfileUtil::GetContentSetting (Closed)

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

Description

Use GetPermissionStatus instead of DesktopNotificationProfileUtil::GetContentSetting DesktopNotificationProfileUtil::GetContentSetting() will call directly into HostContentSettingsMap::GetContentSetting() and thus miss some checks in permission layer. In this CL DesktopNotificationProfileUtil::GetContentSetting()is removed and all its call sites are changed to call PermissionManager::GetPermissionStatus(). Committed: https://crrev.com/106c1779974bbe7570713d9503929b1be3e0de62 Cr-Commit-Position: refs/heads/master@{#397960}

Patch Set 1 : #

Patch Set 2 : change GetNotificationOrigin to use GetSettingForOrigin on Android #

Total comments: 4

Patch Set 3 : remove embber param for notifications #

Total comments: 1

Messages

Total messages: 26 (11 generated)
lshang
Hi Raymes, I changed call sites of DesktopNotificationProfileUtil::GetContentSetting() to PermissionManager::GetPermissionStatus() as we discussed. There is ...
4 years, 6 months ago (2016-05-31 06:49:08 UTC) #3
raymes
On 2016/05/31 06:49:08, Liu Shang wrote: > Hi Raymes, I changed call sites of > ...
4 years, 6 months ago (2016-06-01 07:24:29 UTC) #4
lshang
+OWNERs peter@, please review changes in chrome/browser/notifications benwells@, please review changes in chrome/browser/extensions thanks!
4 years, 6 months ago (2016-06-02 00:32:03 UTC) #6
lshang
and +bauerb@ for chrome/browser/android OWNER review:-)
4 years, 6 months ago (2016-06-02 00:47:42 UTC) #8
benwells
c/b/e lgtm
4 years, 6 months ago (2016-06-02 01:16:17 UTC) #12
Bernhard Bauer
https://codereview.chromium.org/2020063003/diff/80001/chrome/browser/android/preferences/website_preference_bridge.cc File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/2020063003/diff/80001/chrome/browser/android/preferences/website_preference_bridge.cc#newcode319 chrome/browser/android/preferences/website_preference_bridge.cc:319: origin, origin, is_incognito); Is it on purpose that we ...
4 years, 6 months ago (2016-06-02 11:19:02 UTC) #13
Michael van Ouwerkerk
https://codereview.chromium.org/2020063003/diff/80001/chrome/browser/android/preferences/website_preference_bridge.cc File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/2020063003/diff/80001/chrome/browser/android/preferences/website_preference_bridge.cc#newcode319 chrome/browser/android/preferences/website_preference_bridge.cc:319: origin, origin, is_incognito); On 2016/06/02 11:19:01, Bernhard Bauer wrote: ...
4 years, 6 months ago (2016-06-02 12:03:01 UTC) #14
lshang
Thanks Bernhard! https://codereview.chromium.org/2020063003/diff/80001/chrome/browser/android/preferences/website_preference_bridge.cc File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/2020063003/diff/80001/chrome/browser/android/preferences/website_preference_bridge.cc#newcode319 chrome/browser/android/preferences/website_preference_bridge.cc:319: origin, origin, is_incognito); On 2016/06/02 11:19:01, Bernhard ...
4 years, 6 months ago (2016-06-02 12:05:25 UTC) #15
Bernhard Bauer
https://codereview.chromium.org/2020063003/diff/80001/chrome/browser/android/preferences/website_preference_bridge.cc File chrome/browser/android/preferences/website_preference_bridge.cc (right): https://codereview.chromium.org/2020063003/diff/80001/chrome/browser/android/preferences/website_preference_bridge.cc#newcode319 chrome/browser/android/preferences/website_preference_bridge.cc:319: origin, origin, is_incognito); On 2016/06/02 12:05:25, Liu Shang wrote: ...
4 years, 6 months ago (2016-06-02 12:23:04 UTC) #16
Peter Beverloo
lgtm
4 years, 6 months ago (2016-06-02 14:15:47 UTC) #17
lshang
On 2016/06/02 12:23:04, Bernhard Bauer wrote: > https://codereview.chromium.org/2020063003/diff/80001/chrome/browser/android/preferences/website_preference_bridge.cc > File chrome/browser/android/preferences/website_preference_bridge.cc (right): > > https://codereview.chromium.org/2020063003/diff/80001/chrome/browser/android/preferences/website_preference_bridge.cc#newcode319 ...
4 years, 6 months ago (2016-06-03 06:34:48 UTC) #18
Bernhard Bauer
LGTM, with another possible yak shaving (doesn't have to be in this CL): https://codereview.chromium.org/2020063003/diff/100001/chrome/browser/android/preferences/website_preference_bridge.cc File ...
4 years, 6 months ago (2016-06-03 08:03:33 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2020063003/100001
4 years, 6 months ago (2016-06-06 00:29:23 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 6 months ago (2016-06-06 01:43:47 UTC) #24
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 01:45:08 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/106c1779974bbe7570713d9503929b1be3e0de62
Cr-Commit-Position: refs/heads/master@{#397960}

Powered by Google App Engine
This is Rietveld 408576698