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

Issue 2975683002: Add GeolocationManager service (Closed)

Created:
3 years, 5 months ago by asimjour1
Modified:
3 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-vr-reviews_chromium.org, jam, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add GeolocationConfig interface GeolocationConfig is designed to be used from the chrome/browser. For now the only method is IsHighAccuracyLocationBeingCaptured, that indicates if the location is captured with high_accuracy=enabled flag. BUG=731758 Review-Url: https://codereview.chromium.org/2975683002 Cr-Commit-Position: refs/heads/master@{#486123} Committed: https://chromium.googlesource.com/chromium/src/+/839ce1be4b4cdc2a0f92bd0da4fc1fe3d10f67e0

Patch Set 1 #

Patch Set 2 : Clean up #

Patch Set 3 : Fix Windows dll-interface problem #

Total comments: 8

Patch Set 4 : Add GeolocationManager service #

Total comments: 9

Patch Set 5 : Rename GeolocationManager to GeolocationConfig #

Patch Set 6 : Rename GeolocationManager to GeolocationConfig #

Patch Set 7 : Rebase #

Total comments: 10

Patch Set 8 : Address comments #

Total comments: 4

Patch Set 9 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -2 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 3 4 5 6 4 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 4 5 6 7 4 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/vr/ui_interface.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_manager/common_browser_interfaces.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 2 3 4 2 chunks +10 lines, -1 line 0 comments Download
M device/geolocation/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A device/geolocation/geolocation_config.h View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
A device/geolocation/geolocation_config.cc View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
M device/geolocation/geolocation_provider.h View 1 chunk +2 lines, -0 lines 0 comments Download
M device/geolocation/geolocation_provider_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M device/geolocation/geolocation_provider_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M device/geolocation/public/interfaces/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A device/geolocation/public/interfaces/geolocation_config.mojom View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (33 generated)
asimjour1
rockot@chromium.org: Please review changes in
3 years, 5 months ago (2017-07-10 19:06:01 UTC) #11
Avi (use Gerrit)
content lgtm
3 years, 5 months ago (2017-07-10 19:18:35 UTC) #12
Ian Vollick
On 2017/07/10 19:18:35, Avi (ping after 24h) wrote: > content lgtm vr_shell lgtm
3 years, 5 months ago (2017-07-10 19:35:05 UTC) #13
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2975683002/diff/40001/content/public/app/mojo/content_browser_manifest.json File content/public/app/mojo/content_browser_manifest.json (right): https://codereview.chromium.org/2975683002/diff/40001/content/public/app/mojo/content_browser_manifest.json#newcode49 content/public/app/mojo/content_browser_manifest.json:49: "geolocation_manager": [ geolocation_config? https://codereview.chromium.org/2975683002/diff/40001/device/geolocation/public/interfaces/geolocation_manager.mojom File device/geolocation/public/interfaces/geolocation_manager.mojom (right): https://codereview.chromium.org/2975683002/diff/40001/device/geolocation/public/interfaces/geolocation_manager.mojom#newcode7 device/geolocation/public/interfaces/geolocation_manager.mojom:7: ...
3 years, 5 months ago (2017-07-10 19:38:55 UTC) #14
amp
Drive by comments/questions. Manager seems like the wrong name for this. There is already a ...
3 years, 5 months ago (2017-07-10 20:13:25 UTC) #16
asimjour1
https://codereview.chromium.org/2975683002/diff/40001/content/public/app/mojo/content_browser_manifest.json File content/public/app/mojo/content_browser_manifest.json (right): https://codereview.chromium.org/2975683002/diff/40001/content/public/app/mojo/content_browser_manifest.json#newcode49 content/public/app/mojo/content_browser_manifest.json:49: "geolocation_manager": [ On 2017/07/10 19:38:55, Ken Rockot(use gerrit already) ...
3 years, 5 months ago (2017-07-10 20:45:50 UTC) #17
asimjour1
https://codereview.chromium.org/2975683002/diff/40001/content/public/app/mojo/content_browser_manifest.json File content/public/app/mojo/content_browser_manifest.json (right): https://codereview.chromium.org/2975683002/diff/40001/content/public/app/mojo/content_browser_manifest.json#newcode49 content/public/app/mojo/content_browser_manifest.json:49: "geolocation_manager": [ On 2017/07/10 19:38:55, Ken Rockot(use gerrit already) ...
3 years, 5 months ago (2017-07-10 20:45:50 UTC) #18
asimjour1
On 2017/07/10 20:45:50, asimjour1 wrote: > https://codereview.chromium.org/2975683002/diff/40001/content/public/app/mojo/content_browser_manifest.json > File content/public/app/mojo/content_browser_manifest.json (right): > > https://codereview.chromium.org/2975683002/diff/40001/content/public/app/mojo/content_browser_manifest.json#newcode49 > ...
3 years, 5 months ago (2017-07-10 20:48:24 UTC) #20
blundell
amp@: Good questions. asimjour1@ and I had previously had a discussion about these points, but ...
3 years, 5 months ago (2017-07-11 09:08:01 UTC) #25
blundell
https://codereview.chromium.org/2975683002/diff/60001/chrome/browser/android/vr_shell/vr_shell.h File chrome/browser/android/vr_shell/vr_shell.h (right): https://codereview.chromium.org/2975683002/diff/60001/chrome/browser/android/vr_shell/vr_shell.h#newcode237 chrome/browser/android/vr_shell/vr_shell.h:237: device::mojom::GeolocationManagerPtr geolocation_manager_ptr; naming nit: geolocation_manager_ https://codereview.chromium.org/2975683002/diff/60001/content/browser/service_manager/common_browser_interfaces.cc File content/browser/service_manager/common_browser_interfaces.cc (right): ...
3 years, 5 months ago (2017-07-11 09:08:34 UTC) #26
asimjour1
https://codereview.chromium.org/2975683002/diff/60001/chrome/browser/android/vr_shell/vr_shell.h File chrome/browser/android/vr_shell/vr_shell.h (right): https://codereview.chromium.org/2975683002/diff/60001/chrome/browser/android/vr_shell/vr_shell.h#newcode237 chrome/browser/android/vr_shell/vr_shell.h:237: device::mojom::GeolocationManagerPtr geolocation_manager_ptr; On 2017/07/11 09:08:33, blundell wrote: > naming ...
3 years, 5 months ago (2017-07-11 15:04:12 UTC) #29
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2975683002/diff/60001/content/browser/service_manager/common_browser_interfaces.cc File content/browser/service_manager/common_browser_interfaces.cc (right): https://codereview.chromium.org/2975683002/diff/60001/content/browser/service_manager/common_browser_interfaces.cc#newcode86 content/browser/service_manager/common_browser_interfaces.cc:86: registry_.AddInterface(base::Bind(&device::GeolocationManager::Create)); On 2017/07/11 at 15:04:12, asimjour1 wrote: > ...
3 years, 5 months ago (2017-07-11 15:22:55 UTC) #32
blundell
lgtm, thanks! Could you please update the CL description to talk about GeolocationConfig instead of ...
3 years, 5 months ago (2017-07-12 13:28:06 UTC) #37
estark
https://codereview.chromium.org/2975683002/diff/120001/device/geolocation/public/interfaces/geolocation_config.mojom File device/geolocation/public/interfaces/geolocation_config.mojom (right): https://codereview.chromium.org/2975683002/diff/120001/device/geolocation/public/interfaces/geolocation_config.mojom#newcode7 device/geolocation/public/interfaces/geolocation_config.mojom:7: // Provides an interface for trusted consumers to get ...
3 years, 5 months ago (2017-07-12 15:48:15 UTC) #38
asimjour1
https://codereview.chromium.org/2975683002/diff/120001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2975683002/diff/120001/chrome/browser/android/vr_shell/vr_shell.cc#newcode655 chrome/browser/android/vr_shell/vr_shell.cc:655: &VrShell::SetHighAccuracyLocation, weak_ptr_factory_.GetWeakPtr())); On 2017/07/12 13:28:06, blundell wrote: > this ...
3 years, 5 months ago (2017-07-12 18:03:58 UTC) #39
estark
mojom lgtm https://codereview.chromium.org/2975683002/diff/140001/device/geolocation/public/interfaces/geolocation_config.mojom File device/geolocation/public/interfaces/geolocation_config.mojom (right): https://codereview.chromium.org/2975683002/diff/140001/device/geolocation/public/interfaces/geolocation_config.mojom#newcode10 device/geolocation/public/interfaces/geolocation_config.mojom:10: // Returns true if the location is ...
3 years, 5 months ago (2017-07-12 18:11:52 UTC) #40
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2975683002/diff/140001/device/geolocation/public/interfaces/geolocation_config.mojom File device/geolocation/public/interfaces/geolocation_config.mojom (right): https://codereview.chromium.org/2975683002/diff/140001/device/geolocation/public/interfaces/geolocation_config.mojom#newcode7 device/geolocation/public/interfaces/geolocation_config.mojom:7: // Provides an interface for browser process to access ...
3 years, 5 months ago (2017-07-12 18:19:32 UTC) #41
asimjour1
https://codereview.chromium.org/2975683002/diff/140001/device/geolocation/public/interfaces/geolocation_config.mojom File device/geolocation/public/interfaces/geolocation_config.mojom (right): https://codereview.chromium.org/2975683002/diff/140001/device/geolocation/public/interfaces/geolocation_config.mojom#newcode10 device/geolocation/public/interfaces/geolocation_config.mojom:10: // Returns true if the location is being captured ...
3 years, 5 months ago (2017-07-12 21:58:21 UTC) #47
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/2975683002/160001
3 years, 5 months ago (2017-07-12 21:59:10 UTC) #50
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/839ce1be4b4cdc2a0f92bd0da4fc1fe3d10f67e0
3 years, 5 months ago (2017-07-12 22:05:18 UTC) #53
blundell
https://codereview.chromium.org/2975683002/diff/140001/device/geolocation/public/interfaces/geolocation_config.mojom File device/geolocation/public/interfaces/geolocation_config.mojom (right): https://codereview.chromium.org/2975683002/diff/140001/device/geolocation/public/interfaces/geolocation_config.mojom#newcode7 device/geolocation/public/interfaces/geolocation_config.mojom:7: // Provides an interface for browser process to access ...
3 years, 5 months ago (2017-07-13 11:30:15 UTC) #54
estark
On 2017/07/13 11:30:15, blundell wrote: > https://codereview.chromium.org/2975683002/diff/140001/device/geolocation/public/interfaces/geolocation_config.mojom > File device/geolocation/public/interfaces/geolocation_config.mojom (right): > > https://codereview.chromium.org/2975683002/diff/140001/device/geolocation/public/interfaces/geolocation_config.mojom#newcode7 > ...
3 years, 5 months ago (2017-07-13 16:32:10 UTC) #55
asimjour1
3 years, 5 months ago (2017-07-14 14:27:38 UTC) #56
Message was sent while issue was closed.
On 2017/07/13 16:32:10, estark wrote:
> On 2017/07/13 11:30:15, blundell wrote:
> >
>
https://codereview.chromium.org/2975683002/diff/140001/device/geolocation/pub...
> > File device/geolocation/public/interfaces/geolocation_config.mojom (right):
> > 
> >
>
https://codereview.chromium.org/2975683002/diff/140001/device/geolocation/pub...
> > device/geolocation/public/interfaces/geolocation_config.mojom:7: // Provides
> an
> > interface for browser process to access geolocation capturing
> > On 2017/07/12 18:19:32, Ken Rockot(use gerrit already) wrote:
> > > I think it's wrong to refer to "browser process" in a device service
mojom,
> > but
> > > perhaps this is just another symptom of the more general problem of
security
> > > review being more difficult in a mojom world. Fine for now I guess.
> > 
> > I agree with Ken. The Device Service is conceptually below a concept like
the
> > browser process. As a compromise, could we write something like
> > 
> > "for trusted clients (e.g., the browser process in Chrome)"
> > 
> > ?
> 
> That seems fine to me. My main point of confusion was the "privileged
> information" part, for which it sounds like the fix is uncontroversial.

I uploaded another CL and fixed the comment
https://chromium-review.googlesource.com/c/571031/

Powered by Google App Engine
This is Rietveld 408576698