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

Issue 955383003: ContentBrowserClient::RequestPermission replies with PermissionStatus instead of bool. (Closed)

Created:
5 years, 10 months ago by mlamouri (slow - plz ping)
Modified:
5 years, 7 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, jochen+watch_chromium.org, markusheintz_, mkwst+moarreviews-shell_chromium.org, Michael van Ouwerkerk, peter+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ContentBrowserClient::RequestPermission replies with PermissionStatus instead of bool. This is going to help the PermissionService to have its RequestPermission returing the expected value. Internally, PermissionContextBase is using ContentSetting but the public API is using PermissionStatus. BUG=432978 Committed: https://crrev.com/df357a3150f545d167ff94df7dd7f2ebc52e4811 Cr-Commit-Position: refs/heads/master@{#318900}

Patch Set 1 #

Total comments: 2

Patch Set 2 : builds on android #

Patch Set 3 : fix tests #

Patch Set 4 : fix one chromeos build error #

Patch Set 5 : chromeos should build #

Patch Set 6 : fix android geolocation breakage #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -143 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 1 chunk +1 line, -1 line 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 3 chunks +15 lines, -7 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/permission_bubble_request_impl.h View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/content_settings/permission_bubble_request_impl.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base.h View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base.cc View 1 2 5 chunks +34 lines, -25 lines 2 comments Download
M chrome/browser/content_settings/permission_context_base_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.cc View 1 2 6 chunks +17 lines, -7 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_extensions.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_extensions.cc View 1 3 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_unittest.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_delegate.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_delegate.cc View 4 chunks +15 lines, -8 lines 0 comments Download
M chrome/browser/media/protected_media_identifier_permission_context.cc View 1 2 3 4 3 chunks +23 lines, -21 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_permission_context.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/services/gcm/push_messaging_permission_context.cc View 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_permission_context_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/media/cdm/browser_cdm_manager.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/media/cdm/browser_cdm_manager.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/permissions/permission_service_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/content_browser_client.cc View 1 chunk +2 lines, -2 lines 2 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.h View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.cc View 5 chunks +6 lines, -5 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.h View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
mlamouri (slow - plz ping)
miguelg@, can you look at the PermissionContext related changes? mvanouwerkerk@, can you look at: - ...
5 years, 10 months ago (2015-02-26 14:50:00 UTC) #2
Michael van Ouwerkerk
chrome/browser/geolocation/ and chrome/browser/services/gcm/ looks good but the bots are unhappy https://codereview.chromium.org/955383003/diff/1/chrome/browser/geolocation/geolocation_permission_context.cc File chrome/browser/geolocation/geolocation_permission_context.cc (right): https://codereview.chromium.org/955383003/diff/1/chrome/browser/geolocation/geolocation_permission_context.cc#newcode42 ...
5 years, 10 months ago (2015-02-26 15:09:50 UTC) #3
Miguel Garcia
lgtm for PermissionContext related changes. Thanks for taking care of this!
5 years, 10 months ago (2015-02-26 16:16:19 UTC) #4
mlamouri (slow - plz ping)
new patch should build on Android and hopefully should have fixed some other build breakages ...
5 years, 10 months ago (2015-02-26 21:19:38 UTC) #5
Michael van Ouwerkerk
lgtm but there are still many red bots
5 years, 9 months ago (2015-02-27 10:16:14 UTC) #6
mlamouri (slow - plz ping)
I found the cause of all the failures but one: it's a type, I was ...
5 years, 9 months ago (2015-03-02 16:15:00 UTC) #7
mlamouri (slow - plz ping)
Torne, PTAL at the android_webview/ changes. Jochen, PTAL at content/ and chrome/ changes. Thanks :)
5 years, 9 months ago (2015-03-02 17:03:09 UTC) #9
Torne
android_webview LGTM
5 years, 9 months ago (2015-03-02 17:18:33 UTC) #10
mlamouri (slow - plz ping)
A test suite for Geolocation on Android was failing because it was assuming that the ...
5 years, 9 months ago (2015-03-03 16:22:57 UTC) #11
jochen (gone - plz use gerrit)
lgtm
5 years, 9 months ago (2015-03-03 17:28:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/955383003/100001
5 years, 9 months ago (2015-03-03 17:29:59 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-03 17:34:15 UTC) #16
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/df357a3150f545d167ff94df7dd7f2ebc52e4811 Cr-Commit-Position: refs/heads/master@{#318900}
5 years, 9 months ago (2015-03-03 17:34:56 UTC) #17
gunsch
https://codereview.chromium.org/955383003/diff/100001/content/public/browser/content_browser_client.cc File content/public/browser/content_browser_client.cc (right): https://codereview.chromium.org/955383003/diff/100001/content/public/browser/content_browser_client.cc#newcode234 content/public/browser/content_browser_client.cc:234: callback.Run(PERMISSION_STATUS_DENIED); I'm a little late to the party, but ...
5 years, 9 months ago (2015-03-26 22:36:55 UTC) #19
mlamouri (slow - plz ping)
https://codereview.chromium.org/955383003/diff/100001/content/public/browser/content_browser_client.cc File content/public/browser/content_browser_client.cc (right): https://codereview.chromium.org/955383003/diff/100001/content/public/browser/content_browser_client.cc#newcode234 content/public/browser/content_browser_client.cc:234: callback.Run(PERMISSION_STATUS_DENIED); On 2015/03/26 at 22:36:55, gunsch wrote: > I'm ...
5 years, 8 months ago (2015-03-30 09:32:41 UTC) #20
gunsch
On 2015/03/30 09:32:41, Mounir Lamouri wrote: > https://codereview.chromium.org/955383003/diff/100001/content/public/browser/content_browser_client.cc > File content/public/browser/content_browser_client.cc (right): > > https://codereview.chromium.org/955383003/diff/100001/content/public/browser/content_browser_client.cc#newcode234 ...
5 years, 8 months ago (2015-03-30 16:29:43 UTC) #21
mlamouri (slow - plz ping)
On 2015/03/30 at 16:29:43, gunsch wrote: > On 2015/03/30 09:32:41, Mounir Lamouri wrote: > > ...
5 years, 8 months ago (2015-03-30 16:41:56 UTC) #22
gunsch
On 2015/03/30 16:41:56, Mounir Lamouri wrote: > On 2015/03/30 at 16:29:43, gunsch wrote: > > ...
5 years, 8 months ago (2015-03-30 16:43:05 UTC) #23
dgrogan
https://codereview.chromium.org/955383003/diff/100001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/955383003/diff/100001/chrome/browser/content_settings/permission_context_base.cc#newcode172 chrome/browser/content_settings/permission_context_base.cc:172: if (CONTENT_SETTING_ALLOW) strictly by code inspection, but won't this ...
5 years, 7 months ago (2015-05-14 03:48:28 UTC) #25
Miguel Garcia
5 years, 7 months ago (2015-05-14 11:10:53 UTC) #26
Message was sent while issue was closed.
https://codereview.chromium.org/955383003/diff/100001/chrome/browser/content_...
File chrome/browser/content_settings/permission_context_base.cc (right):

https://codereview.chromium.org/955383003/diff/100001/chrome/browser/content_...
chrome/browser/content_settings/permission_context_base.cc:172: if
(CONTENT_SETTING_ALLOW)
On 2015/05/14 03:48:28, dgrogan wrote:
> strictly by code inspection, but won't this block always be entered? Did you
> mean content_setting == CONTENT_SETTING_ALLOW

You are totally right I uploaded a fix in
https://codereview.chromium.org/1130253010

Powered by Google App Engine
This is Rietveld 408576698