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

Issue 2249283003: Hooks together Geolocation Feature in the Client and Engine. (Closed)

Created:
4 years, 4 months ago by CJ
Modified:
4 years, 3 months ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lai
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hooks together Geolocation Feature in the Client and Engine. This CL registers the GeolocationFeature with the BlimpClientSession, allows the Client-side Geolocation Feature to communicate with the LocationArbitrator, and makes the necessary changes to permissions. Additional Changes: * Renames LocationArbitratorImpl -> LocationArbitrator BUG=614486, 641071 Committed: https://crrev.com/8e0b2a7306378c41550a589dfbb8cefa0ebabca0 Cr-Commit-Position: refs/heads/master@{#416190}

Patch Set 1 #

Patch Set 2 : Updated to include self-review suggestions. #

Patch Set 3 : Linting. #

Total comments: 1

Patch Set 4 : Addresses nyquist's #9 comments. #

Total comments: 24

Patch Set 5 : In response to kmarshall's #12 comments. #

Patch Set 6 : Addresses Wez's #14 comments #

Total comments: 8

Patch Set 7 : Adds unittest for rate_limiting_location_provider_proxy. #

Patch Set 8 : Addresses kmarshall's #16 comments. #

Total comments: 14

Patch Set 9 : Addresses Wez's #19 comments. #

Patch Set 10 : Merge with master. #

Total comments: 10

Patch Set 11 : Ignore Please. #

Patch Set 12 : Addresses Wez's #23 comments. #

Total comments: 2

Patch Set 13 : Merge. #

Patch Set 14 : Addresses nyquist's #32 comments. #

Total comments: 9

Patch Set 15 : Fixes BUILD file. #

Patch Set 16 : BUILD #

Patch Set 17 : Addresses nyquist's #46 comments. #

Total comments: 8

Patch Set 18 : In response to Wez's #48 comments. #

Total comments: 21

Patch Set 19 : Addresses kmarshall's #51 comments. #

Patch Set 20 : Addresses Wez's #52 comments. #

Patch Set 21 : In response to Wez's #58 comment. #

Patch Set 22 : Merge branch 'master' into blp #

Patch Set 23 : Put TestingLocationArbitrator out of anonymous namespace. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -879 lines) Patch
M blimp/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M blimp/client/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/app/android/AndroidManifest.xml.jinja2 View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/core/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M blimp/client/core/blimp_client_context_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +3 lines, -0 lines 0 comments Download
M blimp/client/core/blimp_client_context_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +12 lines, -1 line 0 comments Download
M blimp/client/core/geolocation/BUILD.gn View 1 2 3 4 5 11 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/session/blimp_client_session.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -0 lines 0 comments Download
M blimp/client/session/blimp_client_session.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +9 lines, -0 lines 0 comments Download
M blimp/engine/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M blimp/engine/app/blimp_permission_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +7 lines, -1 line 0 comments Download
M blimp/engine/feature/geolocation/engine_geolocation_feature.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M blimp/engine/feature/geolocation/engine_geolocation_feature.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +7 lines, -1 line 0 comments Download
M blimp/engine/feature/geolocation/engine_geolocation_feature_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +8 lines, -0 lines 0 comments Download
M device/geolocation/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +3 lines, -3 lines 0 comments Download
M device/geolocation/geolocation_provider_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +3 lines, -3 lines 0 comments Download
A + device/geolocation/location_arbitrator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +8 lines, -9 lines 0 comments Download
A + device/geolocation/location_arbitrator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 11 chunks +30 lines, -31 lines 0 comments Download
D device/geolocation/location_arbitrator_impl.h View 1 2 3 4 5 1 chunk +0 lines, -128 lines 0 comments Download
D device/geolocation/location_arbitrator_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -223 lines 0 comments Download
D device/geolocation/location_arbitrator_impl_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -442 lines 0 comments Download
A + device/geolocation/location_arbitrator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 11 chunks +35 lines, -29 lines 0 comments Download
M device/geolocation/location_provider.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M device/geolocation/mock_location_provider.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M device/geolocation/network_location_provider_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M device/geolocation/network_location_request.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 71 (31 generated)
CJ
TODO: Not sure about the semantics of SetUpdateCallback for LocationArbitrator. Seems misleading and not useful. ...
4 years, 4 months ago (2016-08-17 18:29:45 UTC) #1
CJ
Plz take a look.
4 years, 4 months ago (2016-08-17 22:21:13 UTC) #4
CJ
Plz take a look.
4 years, 4 months ago (2016-08-17 22:21:14 UTC) #5
CJ
On 2016/08/17 22:21:14, CJ wrote: > Plz take a look. Hi everyone. Things have been ...
4 years, 4 months ago (2016-08-18 21:13:06 UTC) #8
nyquist
https://codereview.chromium.org/2249283003/diff/40001/blimp/client/session/blimp_client_session.h File blimp/client/session/blimp_client_session.h (right): https://codereview.chromium.org/2249283003/diff/40001/blimp/client/session/blimp_client_session.h#newcode107 blimp/client/session/blimp_client_session.h:107: std::unique_ptr<GeolocationFeature> geolocation_feature_; Drive-by: I think you want this for ...
4 years, 4 months ago (2016-08-18 22:17:17 UTC) #9
CJ
On 2016/08/18 22:17:17, nyquist wrote: > https://codereview.chromium.org/2249283003/diff/40001/blimp/client/session/blimp_client_session.h > File blimp/client/session/blimp_client_session.h (right): > > https://codereview.chromium.org/2249283003/diff/40001/blimp/client/session/blimp_client_session.h#newcode107 > ...
4 years, 4 months ago (2016-08-18 23:00:19 UTC) #10
Kevin M
https://codereview.chromium.org/2249283003/diff/60001/blimp/client/core/blimp_client_context_impl.cc File blimp/client/core/blimp_client_context_impl.cc (right): https://codereview.chromium.org/2249283003/diff/60001/blimp/client/core/blimp_client_context_impl.cc#newcode54 blimp/client/core/blimp_client_context_impl.cc:54: geolocation_feature_(new GeolocationFeature( How come this is stored in both ...
4 years, 4 months ago (2016-08-19 17:51:37 UTC) #12
CJ
https://codereview.chromium.org/2249283003/diff/60001/blimp/client/core/blimp_client_context_impl.cc File blimp/client/core/blimp_client_context_impl.cc (right): https://codereview.chromium.org/2249283003/diff/60001/blimp/client/core/blimp_client_context_impl.cc#newcode54 blimp/client/core/blimp_client_context_impl.cc:54: geolocation_feature_(new GeolocationFeature( On 2016/08/19 17:51:37, Kevin M wrote: > ...
4 years, 4 months ago (2016-08-19 20:44:01 UTC) #13
Wez
https://codereview.chromium.org/2249283003/diff/60001/blimp/client/core/blimp_client_context_impl.cc File blimp/client/core/blimp_client_context_impl.cc (right): https://codereview.chromium.org/2249283003/diff/60001/blimp/client/core/blimp_client_context_impl.cc#newcode69 blimp/client/core/blimp_client_context_impl.cc:69: // registered. nit: While you're here can you correct ...
4 years, 4 months ago (2016-08-19 23:12:11 UTC) #14
CJ
Ignored rate_limiting_location_provider_proxy_unittest.cc. Still in progress. https://codereview.chromium.org/2249283003/diff/60001/blimp/client/core/blimp_client_context_impl.cc File blimp/client/core/blimp_client_context_impl.cc (right): https://codereview.chromium.org/2249283003/diff/60001/blimp/client/core/blimp_client_context_impl.cc#newcode69 blimp/client/core/blimp_client_context_impl.cc:69: // registered. On 2016/08/19 ...
4 years, 4 months ago (2016-08-22 20:28:08 UTC) #15
Kevin M
lgtm https://codereview.chromium.org/2249283003/diff/100001/blimp/client/core/blimp_client_context_impl.h File blimp/client/core/blimp_client_context_impl.h (right): https://codereview.chromium.org/2249283003/diff/100001/blimp/client/core/blimp_client_context_impl.h#newcode63 blimp/client/core/blimp_client_context_impl.h:63: // Register features' message senders and receivers. Function ...
4 years, 4 months ago (2016-08-22 22:09:35 UTC) #16
CJ
https://codereview.chromium.org/2249283003/diff/100001/blimp/client/core/blimp_client_context_impl.h File blimp/client/core/blimp_client_context_impl.h (right): https://codereview.chromium.org/2249283003/diff/100001/blimp/client/core/blimp_client_context_impl.h#newcode63 blimp/client/core/blimp_client_context_impl.h:63: // Register features' message senders and receivers. On 2016/08/22 ...
4 years, 3 months ago (2016-08-23 18:07:13 UTC) #17
Wez
Looks like the CL description is out-of-date?
4 years, 3 months ago (2016-08-24 23:00:11 UTC) #18
Wez
https://codereview.chromium.org/2249283003/diff/140001/blimp/client/core/blimp_client_context_impl.h File blimp/client/core/blimp_client_context_impl.h (right): https://codereview.chromium.org/2249283003/diff/140001/blimp/client/core/blimp_client_context_impl.h#newcode79 blimp/client/core/blimp_client_context_impl.h:79: // register it. Not clear what this means - ...
4 years, 3 months ago (2016-08-24 23:07:19 UTC) #19
CJ
https://codereview.chromium.org/2249283003/diff/140001/blimp/client/core/blimp_client_context_impl.h File blimp/client/core/blimp_client_context_impl.h (right): https://codereview.chromium.org/2249283003/diff/140001/blimp/client/core/blimp_client_context_impl.h#newcode79 blimp/client/core/blimp_client_context_impl.h:79: // register it. On 2016/08/24 23:07:18, Wez wrote: > ...
4 years, 3 months ago (2016-08-25 19:08:22 UTC) #21
CJ
On 2016/08/25 19:08:22, CJ wrote: > https://codereview.chromium.org/2249283003/diff/140001/blimp/client/core/blimp_client_context_impl.h > File blimp/client/core/blimp_client_context_impl.h (right): > > https://codereview.chromium.org/2249283003/diff/140001/blimp/client/core/blimp_client_context_impl.h#newcode79 > ...
4 years, 3 months ago (2016-08-26 20:31:30 UTC) #22
Wez
https://codereview.chromium.org/2249283003/diff/140001/device/geolocation/rate_limiting_location_provider_proxy.h File device/geolocation/rate_limiting_location_provider_proxy.h (right): https://codereview.chromium.org/2249283003/diff/140001/device/geolocation/rate_limiting_location_provider_proxy.h#newcode17 device/geolocation/rate_limiting_location_provider_proxy.h:17: // TODO(lethalantidote): Schedule aspect still to be implemented. Dummy ...
4 years, 3 months ago (2016-08-30 00:03:58 UTC) #23
CJ
+mcasas for device/geolocation related items. https://codereview.chromium.org/2249283003/diff/140001/device/geolocation/rate_limiting_location_provider_proxy.h File device/geolocation/rate_limiting_location_provider_proxy.h (right): https://codereview.chromium.org/2249283003/diff/140001/device/geolocation/rate_limiting_location_provider_proxy.h#newcode17 device/geolocation/rate_limiting_location_provider_proxy.h:17: // TODO(lethalantidote): Schedule aspect ...
4 years, 3 months ago (2016-08-31 23:22:57 UTC) #26
nyquist
basically //blimp/client/session is going away very, very soon, so I think you'd want to move ...
4 years, 3 months ago (2016-08-31 23:29:11 UTC) #32
mcasas
On 2016/08/31 23:22:57, CJ wrote: > +mcasas for device/geolocation related items. > > https://codereview.chromium.org/2249283003/diff/140001/device/geolocation/rate_limiting_location_provider_proxy.h > ...
4 years, 3 months ago (2016-08-31 23:29:45 UTC) #33
CJ
https://codereview.chromium.org/2249283003/diff/220001/blimp/client/session/blimp_client_session.h File blimp/client/session/blimp_client_session.h (right): https://codereview.chromium.org/2249283003/diff/220001/blimp/client/session/blimp_client_session.h#newcode108 blimp/client/session/blimp_client_session.h:108: std::unique_ptr<device::GeolocationDelegate> geolocation_delegate_; On 2016/08/31 23:29:11, nyquist wrote: > This ...
4 years, 3 months ago (2016-08-31 23:49:37 UTC) #34
nyquist
https://codereview.chromium.org/2249283003/diff/260001/blimp/client/core/blimp_client_context_impl.cc File blimp/client/core/blimp_client_context_impl.cc (right): https://codereview.chromium.org/2249283003/diff/260001/blimp/client/core/blimp_client_context_impl.cc#newcode73 blimp/client/core/blimp_client_context_impl.cc:73: geolocation_delegate_(new device::GeolocationDelegate), Nit: base::MakeUnique here and below https://codereview.chromium.org/2249283003/diff/260001/blimp/client/core/blimp_client_context_impl.h File ...
4 years, 3 months ago (2016-09-01 00:34:30 UTC) #46
CJ
https://codereview.chromium.org/2249283003/diff/260001/blimp/client/core/blimp_client_context_impl.cc File blimp/client/core/blimp_client_context_impl.cc (right): https://codereview.chromium.org/2249283003/diff/260001/blimp/client/core/blimp_client_context_impl.cc#newcode73 blimp/client/core/blimp_client_context_impl.cc:73: geolocation_delegate_(new device::GeolocationDelegate), On 2016/09/01 00:34:30, nyquist wrote: > Nit: ...
4 years, 3 months ago (2016-09-01 00:45:40 UTC) #47
Wez
LGTM once the issues below are resolved. nit for future CLs: It would have been ...
4 years, 3 months ago (2016-09-01 02:45:43 UTC) #48
CJ
https://codereview.chromium.org/2249283003/diff/320001/blimp/engine/app/blimp_permission_manager.cc File blimp/engine/app/blimp_permission_manager.cc (right): https://codereview.chromium.org/2249283003/diff/320001/blimp/engine/app/blimp_permission_manager.cc#newcode26 blimp/engine/app/blimp_permission_manager.cc:26: callback.Run(blink::mojom::PermissionStatus::GRANTED); On 2016/09/01 02:45:43, Wez wrote: > Let's not ...
4 years, 3 months ago (2016-09-01 18:17:05 UTC) #49
CJ
https://codereview.chromium.org/2249283003/diff/320001/blimp/engine/app/blimp_permission_manager.cc File blimp/engine/app/blimp_permission_manager.cc (right): https://codereview.chromium.org/2249283003/diff/320001/blimp/engine/app/blimp_permission_manager.cc#newcode26 blimp/engine/app/blimp_permission_manager.cc:26: callback.Run(blink::mojom::PermissionStatus::GRANTED); On 2016/09/01 02:45:43, Wez wrote: > Let's not ...
4 years, 3 months ago (2016-09-01 18:17:05 UTC) #50
Kevin M
https://codereview.chromium.org/2249283003/diff/340001/blimp/client/core/blimp_client_context_impl.h File blimp/client/core/blimp_client_context_impl.h (right): https://codereview.chromium.org/2249283003/diff/340001/blimp/client/core/blimp_client_context_impl.h#newcode23 blimp/client/core/blimp_client_context_impl.h:23: Remove this newline https://codereview.chromium.org/2249283003/diff/340001/blimp/client/session/blimp_client_session.cc File blimp/client/session/blimp_client_session.cc (right): https://codereview.chromium.org/2249283003/diff/340001/blimp/client/session/blimp_client_session.cc#newcode44 blimp/client/session/blimp_client_session.cc:44: ...
4 years, 3 months ago (2016-09-01 20:01:07 UTC) #51
Wez
https://codereview.chromium.org/2249283003/diff/320001/blimp/engine/feature/geolocation/engine_geolocation_feature.cc File blimp/engine/feature/geolocation/engine_geolocation_feature.cc (right): https://codereview.chromium.org/2249283003/diff/320001/blimp/engine/feature/geolocation/engine_geolocation_feature.cc#newcode162 blimp/engine/feature/geolocation/engine_geolocation_feature.cc:162: task_runner_ = std::move(runner); On 2016/09/01 18:17:05, CJ wrote: > ...
4 years, 3 months ago (2016-09-01 20:08:18 UTC) #52
CJ
On 2016/09/01 20:08:18, Wez wrote: > https://codereview.chromium.org/2249283003/diff/320001/blimp/engine/feature/geolocation/engine_geolocation_feature.cc > File blimp/engine/feature/geolocation/engine_geolocation_feature.cc (right): > > https://codereview.chromium.org/2249283003/diff/320001/blimp/engine/feature/geolocation/engine_geolocation_feature.cc#newcode162 > ...
4 years, 3 months ago (2016-09-01 22:49:37 UTC) #53
CJ
On 2016/09/01 22:49:37, CJ wrote: > On 2016/09/01 20:08:18, Wez wrote: > > > https://codereview.chromium.org/2249283003/diff/320001/blimp/engine/feature/geolocation/engine_geolocation_feature.cc ...
4 years, 3 months ago (2016-09-01 22:59:28 UTC) #54
CJ
https://codereview.chromium.org/2249283003/diff/340001/blimp/client/core/blimp_client_context_impl.h File blimp/client/core/blimp_client_context_impl.h (right): https://codereview.chromium.org/2249283003/diff/340001/blimp/client/core/blimp_client_context_impl.h#newcode23 blimp/client/core/blimp_client_context_impl.h:23: On 2016/09/01 20:01:06, Kevin M wrote: > Remove this ...
4 years, 3 months ago (2016-09-01 22:59:43 UTC) #55
Wez
For this in the cheap-seats, we think the issue was that the breaking code was: ...
4 years, 3 months ago (2016-09-01 23:08:28 UTC) #56
Wez
https://codereview.chromium.org/2249283003/diff/340001/device/geolocation/location_arbitrator_unittest.cc File device/geolocation/location_arbitrator_unittest.cc (right): https://codereview.chromium.org/2249283003/diff/340001/device/geolocation/location_arbitrator_unittest.cc#newcode25 device/geolocation/location_arbitrator_unittest.cc:25: // Need a vtable for GMock. On 2016/09/01 22:59:43, ...
4 years, 3 months ago (2016-09-01 23:11:55 UTC) #57
CJ
On 2016/09/01 23:11:55, Wez wrote: > https://codereview.chromium.org/2249283003/diff/340001/device/geolocation/location_arbitrator_unittest.cc > File device/geolocation/location_arbitrator_unittest.cc (right): > > https://codereview.chromium.org/2249283003/diff/340001/device/geolocation/location_arbitrator_unittest.cc#newcode25 > ...
4 years, 3 months ago (2016-09-01 23:28:53 UTC) #58
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/2249283003/410001
4 years, 3 months ago (2016-09-01 23:37:51 UTC) #61
nyquist
lgtm
4 years, 3 months ago (2016-09-02 00:24:04 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/273392)
4 years, 3 months ago (2016-09-02 00:39:16 UTC) #64
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/2249283003/430001
4 years, 3 months ago (2016-09-02 03:45:08 UTC) #67
commit-bot: I haz the power
Committed patchset #23 (id:430001)
4 years, 3 months ago (2016-09-02 04:59:46 UTC) #69
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 05:01:47 UTC) #71
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/8e0b2a7306378c41550a589dfbb8cefa0ebabca0
Cr-Commit-Position: refs/heads/master@{#416190}

Powered by Google App Engine
This is Rietveld 408576698