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

Issue 1164973003: Add initial support for runtime permissions in android M. (Closed)

Created:
5 years, 6 months ago by Ted C
Modified:
5 years, 6 months ago
CC:
chromium-reviews, asanka, mlamouri+watch-content_chromium.org, feature-media-reviews_chromium.org, benjhayden+dwatch_chromium.org, jam, mcasas+watch_chromium.org, posciak+watch_chromium.org, darin-cc_chromium.org, mlamouri+watch-permissions_chromium.org, markusheintz_, wjia+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add initial support for runtime permissions in android M. After clicking the "Allow" button in the infobars, Chrome will request the permission if required from Android. BUG=496447 Committed: https://crrev.com/7e231f0a071edb7181990ada5a115defc4477278 Cr-Commit-Position: refs/heads/master@{#333663}

Patch Set 1 #

Total comments: 14

Patch Set 2 : First set of comments #

Patch Set 3 : Address dfalcantara's comments #

Total comments: 14

Patch Set 4 : Address bauerb comments #

Patch Set 5 : Make content setting info optional #

Patch Set 6 : Rebase #

Patch Set 7 : Fix findbugs #

Patch Set 8 : Appease findbugs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -32 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/infobar/ConfirmInfoBar.java View 1 2 3 4 5 6 3 chunks +113 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/ConfirmInfoBarDelegate.java View 1 2 3 4 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/android/java_staging/src/org/chromium/chrome/browser/CompositorChromeActivity.java View 1 2 3 4 5 3 chunks +11 lines, -1 line 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/permission_infobar_delegate.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/permission_infobar_delegate.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/media/media_stream_infobar_delegate.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/media/media_stream_infobar_delegate.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/infobars/confirm_infobar.cc View 1 2 3 4 2 chunks +39 lines, -3 lines 0 comments Download
M components/infobars/core/infobar_delegate.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M components/infobars/core/infobar_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java View 4 chunks +10 lines, -9 lines 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java View 2 chunks +1 line, -2 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/ActivityWindowAndroid.java View 1 2 7 chunks +80 lines, -1 line 0 comments Download
M ui/android/java/src/org/chromium/ui/base/WindowAndroid.java View 1 2 3 3 chunks +27 lines, -11 lines 0 comments Download

Messages

Total messages: 29 (10 generated)
Ted C
PTAL dfalcantara - * pkasting - components/infobars First pass before I rope in the remainder ...
5 years, 6 months ago (2015-06-04 01:04:44 UTC) #2
Peter Kasting
I don't love the changes to confirm_infobar.cc and wonder if it would be any cleaner ...
5 years, 6 months ago (2015-06-04 07:08:13 UTC) #3
gone
lgtm as the first pass. Can't wait until we can use the real SDK and ...
5 years, 6 months ago (2015-06-04 18:42:04 UTC) #4
Ted C
@pkasting - I agree that the conflation of ConfirmInfobar is a bit unfortunate but the ...
5 years, 6 months ago (2015-06-05 00:57:57 UTC) #5
Ted C
Adding the additional owners: tommi - chrome/browser/media bauerb - chrome/browser/content_settings/
5 years, 6 months ago (2015-06-05 01:01:37 UTC) #7
Bernhard Bauer
https://codereview.chromium.org/1164973003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/infobar/ConfirmInfoBar.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/ConfirmInfoBar.java (right): https://codereview.chromium.org/1164973003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/infobar/ConfirmInfoBar.java#newcode39 chrome/android/java/src/org/chromium/chrome/browser/infobar/ConfirmInfoBar.java:39: private final int[] mContentSettings; Add a Javadoc comment what ...
5 years, 6 months ago (2015-06-05 08:34:05 UTC) #8
Peter Kasting
https://codereview.chromium.org/1164973003/diff/40001/chrome/browser/ui/android/infobars/confirm_infobar.cc File chrome/browser/ui/android/infobars/confirm_infobar.cc (right): https://codereview.chromium.org/1164973003/diff/40001/chrome/browser/ui/android/infobars/confirm_infobar.cc#newcode83 chrome/browser/ui/android/infobars/confirm_infobar.cc:83: DCHECK(web_contents); On 2015/06/05 08:34:04, Bernhard Bauer wrote: > These ...
5 years, 6 months ago (2015-06-05 10:33:53 UTC) #9
Bernhard Bauer
https://codereview.chromium.org/1164973003/diff/40001/chrome/browser/ui/android/infobars/confirm_infobar.cc File chrome/browser/ui/android/infobars/confirm_infobar.cc (right): https://codereview.chromium.org/1164973003/diff/40001/chrome/browser/ui/android/infobars/confirm_infobar.cc#newcode83 chrome/browser/ui/android/infobars/confirm_infobar.cc:83: DCHECK(web_contents); On 2015/06/05 10:33:53, Peter Kasting wrote: > On ...
5 years, 6 months ago (2015-06-05 14:26:38 UTC) #10
Ted C
https://codereview.chromium.org/1164973003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/infobar/ConfirmInfoBar.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/ConfirmInfoBar.java (right): https://codereview.chromium.org/1164973003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/infobar/ConfirmInfoBar.java#newcode39 chrome/android/java/src/org/chromium/chrome/browser/infobar/ConfirmInfoBar.java:39: private final int[] mContentSettings; On 2015/06/05 08:34:04, Bernhard Bauer ...
5 years, 6 months ago (2015-06-05 16:35:30 UTC) #11
Bernhard Bauer
LGTM, thanks!
5 years, 6 months ago (2015-06-05 16:45:37 UTC) #12
Ted C
+dalecurtis for media OWNERS Tommi was OOO and looking for other owners that can review ...
5 years, 6 months ago (2015-06-08 20:39:07 UTC) #14
DaleCurtis
media/ lgtm
5 years, 6 months ago (2015-06-09 19:43:05 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164973003/100001
5 years, 6 months ago (2015-06-09 20:46:46 UTC) #18
commit-bot: I haz the power
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/85030)
5 years, 6 months ago (2015-06-09 21:57:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164973003/100002
5 years, 6 months ago (2015-06-09 22:16:50 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/67811)
5 years, 6 months ago (2015-06-10 00:31:27 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164973003/100002
5 years, 6 months ago (2015-06-10 00:36:47 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:100002)
5 years, 6 months ago (2015-06-10 02:42:25 UTC) #28
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 02:43:12 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/7e231f0a071edb7181990ada5a115defc4477278
Cr-Commit-Position: refs/heads/master@{#333663}

Powered by Google App Engine
This is Rietveld 408576698