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

Issue 2836213002: RELAND: GeoLocation: add support for GmsCore location provider (Closed)

Created:
3 years, 8 months ago by mcasas
Modified:
3 years, 7 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

RELAND: GeoLocation: add support for GmsCore location provider The original CL got reverted because the CTS Test [1], that expects Android Location provider to be used, failed. This CL adds a flag to enable explicitly the GMScore provider, and uses it from Chrome. [1] https://android.googlesource.com/platform/cts/+/master/tests/tests/webkit/src/android/webkit/cts/GeolocationTest.java Original CL description ----------------------------------------------- This CL adds LocationProviderGmsCore.java, an implementation of LocationProviderFactory.LocationProvider interface using the Google Play Services (GMS) provided location. The tests content/public/.../LocationProviderTest.java are removed and instead a new pumped up one is added in device/geolocation, doing what the previous one was doing and parameterized to try other location provider APIs (was: android only, now: mock, android and GMS core). BUG=706014 Review-Url: https://codereview.chromium.org/2809813002 Cr-Commit-Position: refs/heads/master@{#466239} Committed: https://chromium.googlesource.com/chromium/src/+/638d9c4adea26e0f8a9d2e429546a44f5603b99c patch from issue 2809813002 at patchset 260001 (http://crrev.com/2809813002#ps260001) TBR= aelias@chromium.org, reillyg@chromium.org, agrieve@chromium.org who LGTM PS1 Review-Url: https://codereview.chromium.org/2836213002 Cr-Commit-Position: refs/heads/master@{#467822} Committed: https://chromium.googlesource.com/chromium/src/+/649deb578bb3df05d80ebc164148f0ce3597f52c

Patch Set 1 : original https://crrev.com/2809813002 #

Patch Set 2 : Mark GmsCore LocationProvider as enabled only from Chrome #

Total comments: 2

Patch Set 3 : Moved useGmsCoreLocationProvider() call to handlePreNativeInitialization() #

Patch Set 4 : Added device/geolocation/android/java to chrome/android/java/DEPS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+400 lines, -110 lines) Patch
M chrome/android/java/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/init/ProcessInitializationHandler.java View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/android/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
D content/public/android/javatests/src/org/chromium/content/browser/LocationProviderTest.java View 1 chunk +0 lines, -72 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/OWNERS View 1 chunk +0 lines, -3 lines 0 comments Download
M device/BUILD.gn View 2 chunks +7 lines, -0 lines 0 comments Download
M device/geolocation/BUILD.gn View 2 chunks +5 lines, -0 lines 0 comments Download
M device/geolocation/android/java/src/org/chromium/device/geolocation/LocationProviderAdapter.java View 3 chunks +10 lines, -5 lines 0 comments Download
M device/geolocation/android/java/src/org/chromium/device/geolocation/LocationProviderAndroid.java View 8 chunks +23 lines, -21 lines 0 comments Download
M device/geolocation/android/java/src/org/chromium/device/geolocation/LocationProviderFactory.java View 1 2 chunks +15 lines, -6 lines 0 comments Download
A device/geolocation/android/java/src/org/chromium/device/geolocation/LocationProviderGmsCore.java View 1 chunk +136 lines, -0 lines 0 comments Download
M device/geolocation/android/javatests/src/org/chromium/device/geolocation/MockLocationProvider.java View 2 chunks +5 lines, -2 lines 0 comments Download
A device/geolocation/android/junit/src/org/chromium/device/geolocation/LocationProviderTest.java View 1 chunk +194 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (21 generated)
mcasas
sgurun@ as talked, ptal
3 years, 8 months ago (2017-04-27 01:36:07 UTC) #6
sgurun-gerrit only
On 2017/04/27 01:36:07, mcasas wrote: > sgurun@ as talked, ptal lgtm, cc'ing Ted as he ...
3 years, 7 months ago (2017-04-27 17:15:04 UTC) #9
Ted C
https://codereview.chromium.org/2836213002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/2836213002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode393 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:393: LocationProviderFactory.useGmsCoreLocationProvider(); Not everything in Chrome goes through ChromeActivity (preferences ...
3 years, 7 months ago (2017-04-27 18:20:44 UTC) #11
mcasas
ptal https://codereview.chromium.org/2836213002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/2836213002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode393 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:393: LocationProviderFactory.useGmsCoreLocationProvider(); On 2017/04/27 18:20:44, Ted C wrote: > ...
3 years, 7 months ago (2017-04-27 18:35:31 UTC) #12
Ted C
On 2017/04/27 18:35:31, mcasas wrote: > ptal > > https://codereview.chromium.org/2836213002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java > File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java > (right): ...
3 years, 7 months ago (2017-04-27 18:37:39 UTC) #13
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/2836213002/80001
3 years, 7 months ago (2017-04-27 19:35:17 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/414391)
3 years, 7 months ago (2017-04-27 20:00:50 UTC) #18
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/2836213002/80001
3 years, 7 months ago (2017-04-27 20:07:54 UTC) #20
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/2836213002/100001
3 years, 7 months ago (2017-04-27 22:38:12 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:100001) as https://chromium.googlesource.com/chromium/src/+/649deb578bb3df05d80ebc164148f0ce3597f52c
3 years, 7 months ago (2017-04-28 01:56:31 UTC) #31
estevenson
3 years, 7 months ago (2017-05-01 15:55:25 UTC) #32
Message was sent while issue was closed.
On 2017/04/28 01:56:31, commit-bot: I haz the power wrote:
> Committed patchset #4 (id:100001) as
>
https://chromium.googlesource.com/chromium/src/+/649deb578bb3df05d80ebc164148...

FYI - this added 60kb to Chrome on Android. No action is required (unless you
can think of an obvious way to reduce the overhead).

Link to size graph:
https://chromeperf.appspot.com/report?sid=cfc29eed1238fd38fb5e6cf83bdba6c619b...

Powered by Google App Engine
This is Rietveld 408576698