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

Issue 1240923002: Add an infobar to resolve android runtime permission mismatches. (Closed)

Created:
5 years, 5 months ago by Ted C
Modified:
5 years, 5 months ago
CC:
chromium-reviews, Miguel Garcia, mlamouri+watch-permissions_chromium.org, mlamouri+watch-geolocation_chromium.org, Michael van Ouwerkerk
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an infobar to resolve android runtime permission mismatches. With runtime permissions on android M, Chrome can get into a mismatched state where a user had previously granted a site a particular content setting (i.e. location), but then the user goes into the app info and disable the required permission. When a user is in this state, we want to prompt an infobar that notifies the user of this mismatch and allows them to rectify it. This patch only adds this infobar to geolocation, but it should also be added to the media permission requests. BUG=499393 Committed: https://crrev.com/76bf8120ce6c788584212096886036d023d5c178 Cr-Commit-Position: refs/heads/master@{#339939}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Add missing override #

Patch Set 3 : Rebased #

Patch Set 4 : Address dfalcantara@ comment #

Total comments: 5

Patch Set 5 : Whitespace fix #

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+471 lines, -5 lines) Patch
A chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java View 1 2 3 1 chunk +123 lines, -0 lines 0 comments Download
M chrome/app/chromium_strings.grd View 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/app/google_chrome_strings.grd View 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_android.h View 1 2 3 3 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_android.cc View 1 2 3 4 2 chunks +40 lines, -1 line 0 comments Download
A chrome/browser/permissions/permission_update_infobar_delegate_android.h View 1 2 3 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/browser/permissions/permission_update_infobar_delegate_android.cc View 1 2 3 1 chunk +172 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
Ted C
PTAL -- I will look into adding tests for this, but at least want to ...
5 years, 5 months ago (2015-07-16 21:30:19 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240923002/1
5 years, 5 months ago (2015-07-17 16:08:26 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/98238)
5 years, 5 months ago (2015-07-17 16:40:32 UTC) #6
gone
questions, mainly. https://codereview.chromium.org/1240923002/diff/1/chrome/browser/geolocation/geolocation_permission_context_android.h File chrome/browser/geolocation/geolocation_permission_context_android.h (right): https://codereview.chromium.org/1240923002/diff/1/chrome/browser/geolocation/geolocation_permission_context_android.h#newcode65 chrome/browser/geolocation/geolocation_permission_context_android.h:65: // destroyed first, which will invalidate weak ...
5 years, 5 months ago (2015-07-17 17:41:40 UTC) #7
Ted C
https://codereview.chromium.org/1240923002/diff/1/chrome/browser/geolocation/geolocation_permission_context_android.h File chrome/browser/geolocation/geolocation_permission_context_android.h (right): https://codereview.chromium.org/1240923002/diff/1/chrome/browser/geolocation/geolocation_permission_context_android.h#newcode65 chrome/browser/geolocation/geolocation_permission_context_android.h:65: // destroyed first, which will invalidate weak pointers On ...
5 years, 5 months ago (2015-07-17 20:37:19 UTC) #8
gone
lgtm https://codereview.chromium.org/1240923002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java (right): https://codereview.chromium.org/1240923002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java#newcode109 chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java:109: notifyPermissionResult(); Guess it's easier to read with single ...
5 years, 5 months ago (2015-07-17 20:47:45 UTC) #9
Ted C
https://codereview.chromium.org/1240923002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java (right): https://codereview.chromium.org/1240923002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java#newcode109 chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java:109: notifyPermissionResult(); On 2015/07/17 20:47:45, dfalcantara wrote: > Guess it's ...
5 years, 5 months ago (2015-07-17 20:55:28 UTC) #10
gone
https://codereview.chromium.org/1240923002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java (right): https://codereview.chromium.org/1240923002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java#newcode109 chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionUpdateInfoBarDelegate.java:109: notifyPermissionResult(); On 2015/07/17 20:55:28, Ted C wrote: > On ...
5 years, 5 months ago (2015-07-17 20:57:03 UTC) #11
gone
5 years, 5 months ago (2015-07-17 20:57:04 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240923002/60001
5 years, 5 months ago (2015-07-17 21:39:52 UTC) #14
Ted C
mlamouri - PTAL permissions/ mvanouwerkerk - PTAL geolocation/ As for testing, it will be much ...
5 years, 5 months ago (2015-07-17 21:40:35 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-17 22:47:12 UTC) #18
mlamouri (slow - plz ping)
lgtm. I wish this code was using Permission types instead of ContentSettings types. If you ...
5 years, 5 months ago (2015-07-20 13:13:09 UTC) #19
Ted C
On 2015/07/20 13:13:09, Mounir Lamouri wrote: > lgtm. > > I wish this code was ...
5 years, 5 months ago (2015-07-21 17:21:45 UTC) #20
Ted C
mvanouwerkerk ping
5 years, 5 months ago (2015-07-21 18:39:47 UTC) #21
Michael van Ouwerkerk
chrome/browser/geolocation/ lgtm https://codereview.chromium.org/1240923002/diff/60001/chrome/browser/geolocation/geolocation_permission_context_android.cc File chrome/browser/geolocation/geolocation_permission_context_android.cc (right): https://codereview.chromium.org/1240923002/diff/60001/chrome/browser/geolocation/geolocation_permission_context_android.cc#newcode54 chrome/browser/geolocation/geolocation_permission_context_android.cc:54: ::HandleUpdateAndroidPermissions, nit: ws++++? not sure what the ...
5 years, 5 months ago (2015-07-22 09:41:26 UTC) #22
Ted C
https://codereview.chromium.org/1240923002/diff/60001/chrome/browser/geolocation/geolocation_permission_context_android.cc File chrome/browser/geolocation/geolocation_permission_context_android.cc (right): https://codereview.chromium.org/1240923002/diff/60001/chrome/browser/geolocation/geolocation_permission_context_android.cc#newcode54 chrome/browser/geolocation/geolocation_permission_context_android.cc:54: ::HandleUpdateAndroidPermissions, On 2015/07/22 09:41:26, Michael van Ouwerkerk wrote: > ...
5 years, 5 months ago (2015-07-22 19:04:55 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240923002/100001
5 years, 5 months ago (2015-07-22 19:06:10 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 5 months ago (2015-07-22 19:52:13 UTC) #27
commit-bot: I haz the power
5 years, 5 months ago (2015-07-22 19:52:45 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/76bf8120ce6c788584212096886036d023d5c178
Cr-Commit-Position: refs/heads/master@{#339939}

Powered by Google App Engine
This is Rietveld 408576698