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

Issue 2621223002: Change the method of getting Location Mode for Geolocation histograms. (Closed)

Created:
3 years, 11 months ago by pdyson
Modified:
3 years, 11 months ago
Reviewers:
dominickn, lbargu, Ted C
CC:
agrieve+watch_chromium.org, chromium-reviews, Ilya Sherman, jdonnelly+watch_chromium.org, kcarattini
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change the method of getting Location Mode for Geolocation histograms. Changing to a method that works even when the app permission is not "allowed". For KitKat and later using getInt with LOCATION_MODE to get the location mode. Versions pre KitKat do not have this. So for those versions using getString with LOCATION_PROVIDER_ALLOWED to get the same information. BUG=668923 Review-Url: https://codereview.chromium.org/2621223002 Cr-Commit-Position: refs/heads/master@{#443517} Committed: https://chromium.googlesource.com/chromium/src/+/07023fe24b20ec9ac60ed4fc72ef569e19e38b87

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove assert and stack trace output. #

Total comments: 2

Patch Set 3 : Remove blank line. #

Patch Set 4 : Use ContextUtils.getApplicationContext() instead of 'context' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -15 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java View 1 2 3 4 chunks +33 lines, -15 lines 0 comments Download

Messages

Total messages: 38 (27 generated)
dominickn
https://codereview.chromium.org/2621223002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java File chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java (right): https://codereview.chromium.org/2621223002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java#newcode414 chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java:414: assert false : "Error getting the LOCATION_MODE"; When would ...
3 years, 11 months ago (2017-01-11 04:24:33 UTC) #8
lbargu
lgtm Actual changes look great. Thanks Paul for improving this. Regarding the error case, I'll ...
3 years, 11 months ago (2017-01-11 15:32:14 UTC) #9
pdyson
https://codereview.chromium.org/2621223002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java File chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java (right): https://codereview.chromium.org/2621223002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java#newcode414 chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java:414: assert false : "Error getting the LOCATION_MODE"; On 2017/01/11 ...
3 years, 11 months ago (2017-01-12 02:38:52 UTC) #10
dominickn
lgtm
3 years, 11 months ago (2017-01-12 03:13:12 UTC) #12
Ted C
lgtm Can you update the CL commit comment to describe why you need different values ...
3 years, 11 months ago (2017-01-12 20:07:37 UTC) #13
pdyson
On 2017/01/12 at 20:07:37, tedchoc wrote: > lgtm > > Can you update the CL ...
3 years, 11 months ago (2017-01-12 23:54:02 UTC) #15
dominickn
lgtm - please wrap the CL description to 80 characters, thanks!
3 years, 11 months ago (2017-01-13 00:07:06 UTC) #20
pdyson
On 2017/01/13 at 00:07:06, dominickn wrote: > lgtm - please wrap the CL description to ...
3 years, 11 months ago (2017-01-13 01:01:55 UTC) #23
pdyson
A cl has replaced all uses of 'context' in this file with ContextUtils.getApplicationContext(). So I've ...
3 years, 11 months ago (2017-01-13 02:47:19 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2621223002/60001
3 years, 11 months ago (2017-01-13 08:13:55 UTC) #35
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 08:18:52 UTC) #38
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/07023fe24b20ec9ac60ed4fc72ef...

Powered by Google App Engine
This is Rietveld 408576698