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

Issue 1535883002: Request location perm. on enabling Physical Web (Closed)

Created:
5 years ago by cco3
Modified:
4 years, 11 months ago
CC:
chromium-reviews, mattreynolds
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Request location perm. on enabling Physical Web If we do not already have the location permission, we need to request it when the user enables the Physical Web feature in the privacy settings. BUG=529962 Committed: https://crrev.com/df2dae8631964a108750f2d5bb8f3132c632d59a Cr-Commit-Position: refs/heads/master@{#367028}

Patch Set 1 #

Patch Set 2 : Remove extraneous logging #

Total comments: 6

Patch Set 3 : Enable preference even when location permission rejected #

Total comments: 3

Patch Set 4 : Don't request permission if already granted #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -4 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java View 1 2 3 4 chunks +55 lines, -4 lines 1 comment Download

Messages

Total messages: 26 (9 generated)
cco3
5 years ago (2015-12-18 22:46:40 UTC) #3
nyquist
Unless this needs to quickly get in, I'd love for tedchoc to review this.
5 years ago (2015-12-18 23:58:07 UTC) #5
cco3
On 2015/12/18 23:58:07, nyquist - OOO till 2016-01-04 wrote: > Unless this needs to quickly ...
5 years ago (2015-12-19 00:01:17 UTC) #6
cco3
Adding newt@ since tedchoc@ and nyquist@ are out.
5 years ago (2015-12-21 18:18:50 UTC) #8
alexandermont
https://codereview.chromium.org/1535883002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java (right): https://codereview.chromium.org/1535883002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java#newcode57 chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java:57: // location permission or lack thereof. The comment here ...
4 years, 11 months ago (2015-12-28 18:58:01 UTC) #10
cco3
Thanks for the review! https://codereview.chromium.org/1535883002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java (right): https://codereview.chromium.org/1535883002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java#newcode57 chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java:57: // location permission or lack ...
4 years, 11 months ago (2015-12-28 19:12:01 UTC) #11
gone
https://codereview.chromium.org/1535883002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java (right): https://codereview.chromium.org/1535883002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java#newcode40 chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java:40: setPhysicalWebEnabled(true); Shouldn't this return, or use an else clause? ...
4 years, 11 months ago (2015-12-28 22:54:23 UTC) #13
gone
https://codereview.chromium.org/1535883002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java (right): https://codereview.chromium.org/1535883002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java#newcode70 chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java:70: // location permission or lack thereof. Can you clarify ...
4 years, 11 months ago (2015-12-28 22:56:38 UTC) #14
cco3
https://codereview.chromium.org/1535883002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java (right): https://codereview.chromium.org/1535883002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java#newcode70 chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java:70: // location permission or lack thereof. On 2015/12/28 22:56:38, ...
4 years, 11 months ago (2015-12-28 23:14:05 UTC) #15
gone
Guessing a new patch for my comment in PS2 is coming up? https://codereview.chromium.org/1535883002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java ...
4 years, 11 months ago (2015-12-28 23:20:09 UTC) #16
cco3
On 2015/12/28 23:20:09, dfalcantara wrote: > Guessing a new patch for my comment in PS2 ...
4 years, 11 months ago (2015-12-28 23:25:12 UTC) #17
cco3
https://codereview.chromium.org/1535883002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java (right): https://codereview.chromium.org/1535883002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java#newcode40 chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java:40: setPhysicalWebEnabled(true); On 2015/12/28 22:54:22, dfalcantara wrote: > Shouldn't this ...
4 years, 11 months ago (2015-12-28 23:25:40 UTC) #18
gone
lgtm https://chromiumcodereview.appspot.com/1535883002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java (right): https://chromiumcodereview.appspot.com/1535883002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java#newcode35 chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java:35: private void ensureLocationPermission() { nit: you can avoid ...
4 years, 11 months ago (2015-12-28 23:35:56 UTC) #19
cco3
On 2015/12/28 23:35:56, dfalcantara wrote: > lgtm > > https://chromiumcodereview.appspot.com/1535883002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java > File > chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PhysicalWebPreferenceFragment.java > ...
4 years, 11 months ago (2015-12-28 23:37:56 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1535883002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1535883002/60001
4 years, 11 months ago (2015-12-28 23:38:19 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2015-12-29 00:16:41 UTC) #24
commit-bot: I haz the power
4 years, 11 months ago (2015-12-29 00:17:25 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/df2dae8631964a108750f2d5bb8f3132c632d59a
Cr-Commit-Position: refs/heads/master@{#367028}

Powered by Google App Engine
This is Rietveld 408576698