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

Issue 2226143002: Gets rid of the LocationArbitrator interface, in preference for LocationProvider. (Closed)

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

Description

Gets rid of the LocationArbitrator interface, in preference for LocationProvider. This CL reorganizes classes that derived from LocationArbitrator to instead derive from LocationProvider. There was a quite a bit of overlap between the two interfaces, and merging the two in favor of LocationProvider makes later work with Blimp much easier. Other work included: *Addresses TODO to remove CreateArbitrator in favor of SetArbitratorForTest BUG=614486, 637869 Committed: https://crrev.com/d04d18d7205ad8f2ea24bfa956a833193c6531f9 Cr-Commit-Position: refs/heads/master@{#414735}

Patch Set 1 : LocationArbitratorImpl becomes a LocationProvider #

Patch Set 2 : Removes LocationArbitrator.h #

Total comments: 32

Patch Set 3 : TODO SetArbitratorForTest In Progress #

Patch Set 4 : Addreses Wez's #4 comments #

Patch Set 5 : Revert "Merge branch 'client_feature' into lai #

Patch Set 6 : Addresses kmarshall's #5 comments. #

Patch Set 7 : Fix up Build file #

Patch Set 8 : Updates LocationProviderBase derived classes. #

Total comments: 18

Patch Set 9 : Addresses Wez's #22 comments #

Patch Set 10 : Merge branch 'master' into lai #

Patch Set 11 : Updated location_provider_android.h #

Total comments: 17

Patch Set 12 : Fixes try bot issue caused by AtExitManager. Now ShadowingAtExitManager. #

Patch Set 13 : Addresses kmarshall's #41 comments #

Total comments: 14

Patch Set 14 : Addresses kmarshall's #47 comments #

Patch Set 15 : Update GetPosition. #

Patch Set 16 : Export LocationProvider #

Patch Set 17 : Merge branch 'master' into lai #

Patch Set 18 : Merge branch 'master' into lai #

Total comments: 21

Patch Set 19 : In response to Wez's #73-75 comments. #

Total comments: 6

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

Total comments: 4

Patch Set 21 : In response to Wez's #82 comments. #

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

Patch Set 23 : Merge branch 'master' into lai #

Patch Set 24 : Merge branch 'master' into lai #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -402 lines) Patch
M blimp/engine/feature/geolocation/blimp_location_provider.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, -2 lines 0 comments Download
M blimp/engine/feature/geolocation/blimp_location_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -7 lines 0 comments Download
M blimp/engine/feature/geolocation/blimp_location_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -16 lines 0 comments Download
M blimp/engine/feature/geolocation/engine_geolocation_feature_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M device/geolocation/BUILD.gn View 1 2 3 4 5 6 2 chunks +0 lines, -3 lines 0 comments Download
M device/geolocation/geolocation_provider_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +12 lines, -12 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 19 20 21 22 6 chunks +23 lines, -17 lines 0 comments Download
M device/geolocation/geolocation_provider_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 6 chunks +41 lines, -41 lines 0 comments Download
D device/geolocation/location_arbitrator.h View 1 1 chunk +0 lines, -37 lines 0 comments Download
M device/geolocation/location_arbitrator_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +13 lines, -14 lines 0 comments Download
M device/geolocation/location_arbitrator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 7 chunks +31 lines, -20 lines 0 comments Download
M device/geolocation/location_arbitrator_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 15 chunks +36 lines, -32 lines 0 comments Download
M device/geolocation/location_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -6 lines 0 comments Download
M device/geolocation/location_provider_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -2 lines 0 comments Download
M device/geolocation/location_provider_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +4 lines, -6 lines 0 comments Download
M device/geolocation/location_provider_base.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M device/geolocation/location_provider_base.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M device/geolocation/mock_location_arbitrator.h View 1 2 3 1 chunk +0 lines, -37 lines 0 comments Download
M device/geolocation/mock_location_arbitrator.cc View 1 2 3 1 chunk +0 lines, -31 lines 0 comments Download
M device/geolocation/mock_location_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +6 lines, -20 lines 0 comments Download
M device/geolocation/mock_location_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -69 lines 0 comments Download
M device/geolocation/network_location_provider.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, -2 lines 0 comments Download
M device/geolocation/network_location_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +12 lines, -15 lines 0 comments Download
M device/geolocation/network_location_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +9 lines, -8 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 122 (78 generated)
CJ
4 years, 4 months ago (2016-08-08 23:34:58 UTC) #2
Wez
Ahhh, loving the cleanup :) https://codereview.chromium.org/2226143002/diff/20001/device/geolocation/geolocation_provider_impl.h File device/geolocation/geolocation_provider_impl.h (right): https://codereview.chromium.org/2226143002/diff/20001/device/geolocation/geolocation_provider_impl.h#newcode60 device/geolocation/geolocation_provider_impl.h:60: // TODO(mvanouwerkerk): Use something ...
4 years, 4 months ago (2016-08-09 01:17:04 UTC) #4
Kevin M
https://codereview.chromium.org/2226143002/diff/20001/device/geolocation/geolocation_provider_impl.h File device/geolocation/geolocation_provider_impl.h (right): https://codereview.chromium.org/2226143002/diff/20001/device/geolocation/geolocation_provider_impl.h#newcode28 device/geolocation/geolocation_provider_impl.h:28: class LocationArbitrator; Not used? https://codereview.chromium.org/2226143002/diff/20001/device/geolocation/geolocation_provider_impl_unittest.cc File device/geolocation/geolocation_provider_impl_unittest.cc (right): https://codereview.chromium.org/2226143002/diff/20001/device/geolocation/geolocation_provider_impl_unittest.cc#newcode20 ...
4 years, 4 months ago (2016-08-10 23:16:19 UTC) #5
CJ
https://codereview.chromium.org/2226143002/diff/20001/device/geolocation/geolocation_provider_impl.h File device/geolocation/geolocation_provider_impl.h (right): https://codereview.chromium.org/2226143002/diff/20001/device/geolocation/geolocation_provider_impl.h#newcode60 device/geolocation/geolocation_provider_impl.h:60: // TODO(mvanouwerkerk): Use something like SetArbitratorForTesting instead. On 2016/08/09 ...
4 years, 4 months ago (2016-08-11 22:06:44 UTC) #6
CJ
https://codereview.chromium.org/2226143002/diff/20001/device/geolocation/geolocation_provider_impl.h File device/geolocation/geolocation_provider_impl.h (right): https://codereview.chromium.org/2226143002/diff/20001/device/geolocation/geolocation_provider_impl.h#newcode28 device/geolocation/geolocation_provider_impl.h:28: class LocationArbitrator; On 2016/08/10 23:16:19, Kevin M wrote: > ...
4 years, 4 months ago (2016-08-11 22:16:54 UTC) #7
Wez
https://codereview.chromium.org/2226143002/diff/20001/device/geolocation/location_arbitrator_impl.h File device/geolocation/location_arbitrator_impl.h (right): https://codereview.chromium.org/2226143002/diff/20001/device/geolocation/location_arbitrator_impl.h#newcode62 device/geolocation/location_arbitrator_impl.h:62: bool HasPermissionBeenGranted() const; On 2016/08/11 22:06:43, CJ wrote: > ...
4 years, 4 months ago (2016-08-12 00:33:44 UTC) #22
CJ
https://codereview.chromium.org/2226143002/diff/140001/device/geolocation/geolocation_provider_impl.cc File device/geolocation/geolocation_provider_impl.cc (right): https://codereview.chromium.org/2226143002/diff/140001/device/geolocation/geolocation_provider_impl.cc#newcode191 device/geolocation/geolocation_provider_impl.cc:191: new LocationArbitratorImpl(callback, g_delegate.Get().get())); On 2016/08/12 00:33:44, Wez wrote: > ...
4 years, 4 months ago (2016-08-12 20:22:46 UTC) #23
Kevin M
https://codereview.chromium.org/2226143002/diff/200001/device/geolocation/geolocation_provider_impl.h File device/geolocation/geolocation_provider_impl.h (right): https://codereview.chromium.org/2226143002/diff/200001/device/geolocation/geolocation_provider_impl.h#newcode53 device/geolocation/geolocation_provider_impl.h:53: // Safe to call from the caller thread while ...
4 years, 4 months ago (2016-08-15 19:12:46 UTC) #41
CJ
https://codereview.chromium.org/2226143002/diff/200001/device/geolocation/geolocation_provider_impl.h File device/geolocation/geolocation_provider_impl.h (right): https://codereview.chromium.org/2226143002/diff/200001/device/geolocation/geolocation_provider_impl.h#newcode53 device/geolocation/geolocation_provider_impl.h:53: // Safe to call from the caller thread while ...
4 years, 4 months ago (2016-08-15 20:11:51 UTC) #42
Kevin M
https://codereview.chromium.org/2226143002/diff/240001/device/geolocation/geolocation_provider_impl_unittest.cc File device/geolocation/geolocation_provider_impl_unittest.cc (right): https://codereview.chromium.org/2226143002/diff/240001/device/geolocation/geolocation_provider_impl_unittest.cc#newcode125 device/geolocation/geolocation_provider_impl_unittest.cc:125: // All other variables must be delcared after |at_exit_| ...
4 years, 4 months ago (2016-08-15 21:34:54 UTC) #47
CJ
https://codereview.chromium.org/2226143002/diff/240001/device/geolocation/geolocation_provider_impl_unittest.cc File device/geolocation/geolocation_provider_impl_unittest.cc (right): https://codereview.chromium.org/2226143002/diff/240001/device/geolocation/geolocation_provider_impl_unittest.cc#newcode125 device/geolocation/geolocation_provider_impl_unittest.cc:125: // All other variables must be delcared after |at_exit_| ...
4 years, 4 months ago (2016-08-15 23:09:52 UTC) #48
Kevin M
lgtm Since this touches browser code outside blimp/, you'll probably want to verify that geolocation ...
4 years, 4 months ago (2016-08-17 17:44:37 UTC) #69
CJ
PING - mvanouwerkerk https://codereview.chromium.org/2226143002/diff/240001/device/geolocation/location_arbitrator_impl_unittest.cc File device/geolocation/location_arbitrator_impl_unittest.cc (right): https://codereview.chromium.org/2226143002/diff/240001/device/geolocation/location_arbitrator_impl_unittest.cc#newcode118 device/geolocation/location_arbitrator_impl_unittest.cc:118: cell_ = new MockLocationProvider; On 2016/08/17 ...
4 years, 4 months ago (2016-08-17 23:07:11 UTC) #70
CJ
On 2016/08/17 23:07:11, CJ wrote: > PING - mvanouwerkerk > > https://codereview.chromium.org/2226143002/diff/240001/device/geolocation/location_arbitrator_impl_unittest.cc > File device/geolocation/location_arbitrator_impl_unittest.cc ...
4 years, 4 months ago (2016-08-18 00:09:12 UTC) #71
Michael van Ouwerkerk
Nice cleanup :-) lgtm
4 years, 4 months ago (2016-08-18 17:09:00 UTC) #72
Wez
Very nice - almost there! https://codereview.chromium.org/2226143002/diff/240001/blimp/engine/feature/geolocation/blimp_location_provider.cc File blimp/engine/feature/geolocation/blimp_location_provider.cc (right): https://codereview.chromium.org/2226143002/diff/240001/blimp/engine/feature/geolocation/blimp_location_provider.cc#newcode51 blimp/engine/feature/geolocation/blimp_location_provider.cc:51: void BlimpLocationProvider::RequestRefresh() { Nothing ...
4 years, 4 months ago (2016-08-19 01:33:12 UTC) #73
Wez
https://codereview.chromium.org/2226143002/diff/340001/device/geolocation/location_arbitrator_impl.cc File device/geolocation/location_arbitrator_impl.cc (right): https://codereview.chromium.org/2226143002/diff/340001/device/geolocation/location_arbitrator_impl.cc#newcode33 device/geolocation/location_arbitrator_impl.cc:33: const LocationUpdateCallback& callback, Looks like we should get rid ...
4 years, 4 months ago (2016-08-19 01:56:31 UTC) #74
Wez
On 2016/08/19 01:56:31, Wez wrote: > https://codereview.chromium.org/2226143002/diff/340001/device/geolocation/location_arbitrator_impl.cc > File device/geolocation/location_arbitrator_impl.cc (right): > > https://codereview.chromium.org/2226143002/diff/340001/device/geolocation/location_arbitrator_impl.cc#newcode33 > ...
4 years, 4 months ago (2016-08-19 01:57:02 UTC) #75
CJ
https://codereview.chromium.org/2226143002/diff/240001/blimp/engine/feature/geolocation/blimp_location_provider.cc File blimp/engine/feature/geolocation/blimp_location_provider.cc (right): https://codereview.chromium.org/2226143002/diff/240001/blimp/engine/feature/geolocation/blimp_location_provider.cc#newcode51 blimp/engine/feature/geolocation/blimp_location_provider.cc:51: void BlimpLocationProvider::RequestRefresh() { On 2016/08/19 01:33:11, Wez wrote: > ...
4 years, 4 months ago (2016-08-22 17:41:30 UTC) #76
CJ
https://codereview.chromium.org/2226143002/diff/240001/blimp/engine/feature/geolocation/blimp_location_provider.cc File blimp/engine/feature/geolocation/blimp_location_provider.cc (right): https://codereview.chromium.org/2226143002/diff/240001/blimp/engine/feature/geolocation/blimp_location_provider.cc#newcode51 blimp/engine/feature/geolocation/blimp_location_provider.cc:51: void BlimpLocationProvider::RequestRefresh() { On 2016/08/19 01:33:11, Wez wrote: > ...
4 years, 4 months ago (2016-08-22 17:41:31 UTC) #77
CJ
4 years, 4 months ago (2016-08-22 17:41:34 UTC) #78
CJ
On 2016/08/22 17:41:34, CJ wrote: Ping Wez. I'd like to get this in very soon ...
4 years, 4 months ago (2016-08-23 23:18:55 UTC) #79
Wez
Almost! https://codereview.chromium.org/2226143002/diff/340001/device/geolocation/network_location_provider.h File device/geolocation/network_location_provider.h (right): https://codereview.chromium.org/2226143002/diff/340001/device/geolocation/network_location_provider.h#newcode82 device/geolocation/network_location_provider.h:82: void RequestRefresh(); On 2016/08/22 17:41:31, CJ wrote: > ...
4 years, 4 months ago (2016-08-24 04:13:17 UTC) #80
CJ
https://codereview.chromium.org/2226143002/diff/340001/device/geolocation/network_location_provider.h File device/geolocation/network_location_provider.h (right): https://codereview.chromium.org/2226143002/diff/340001/device/geolocation/network_location_provider.h#newcode82 device/geolocation/network_location_provider.h:82: void RequestRefresh(); On 2016/08/24 04:13:17, Wez wrote: > On ...
4 years, 4 months ago (2016-08-24 21:32:05 UTC) #81
Wez
https://codereview.chromium.org/2226143002/diff/380001/device/geolocation/network_location_provider.cc File device/geolocation/network_location_provider.cc (right): https://codereview.chromium.org/2226143002/diff/380001/device/geolocation/network_location_provider.cc#newcode221 device/geolocation/network_location_provider.cc:221: if (!weak_factory_.HasWeakPtrs() || is_wifi_data_complete_) { Let's use an early-exit ...
4 years, 4 months ago (2016-08-24 23:20:36 UTC) #82
CJ
https://codereview.chromium.org/2226143002/diff/380001/device/geolocation/network_location_provider.cc File device/geolocation/network_location_provider.cc (right): https://codereview.chromium.org/2226143002/diff/380001/device/geolocation/network_location_provider.cc#newcode221 device/geolocation/network_location_provider.cc:221: if (!weak_factory_.HasWeakPtrs() || is_wifi_data_complete_) { On 2016/08/24 23:20:36, Wez ...
4 years, 4 months ago (2016-08-24 23:35:28 UTC) #83
Wez
lgtm
4 years, 3 months ago (2016-08-25 17:07:04 UTC) #84
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/2226143002/400001
4 years, 3 months ago (2016-08-25 17:56:03 UTC) #87
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/118629) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 3 months ago (2016-08-25 18:00:12 UTC) #89
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/2226143002/420001
4 years, 3 months ago (2016-08-25 18:30:11 UTC) #92
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/58571) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-08-25 18:33:51 UTC) #94
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/2226143002/440001
4 years, 3 months ago (2016-08-25 19:14:32 UTC) #97
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/268950)
4 years, 3 months ago (2016-08-25 20:33:34 UTC) #99
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/2226143002/440001
4 years, 3 months ago (2016-08-25 20:35:06 UTC) #101
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/281429)
4 years, 3 months ago (2016-08-25 22:19:03 UTC) #103
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/2226143002/460001
4 years, 3 months ago (2016-08-25 22:27:30 UTC) #106
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/281522)
4 years, 3 months ago (2016-08-26 00:56:29 UTC) #108
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/2226143002/460001
4 years, 3 months ago (2016-08-26 01:02:40 UTC) #110
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/281645)
4 years, 3 months ago (2016-08-26 03:28:36 UTC) #112
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/2226143002/460001
4 years, 3 months ago (2016-08-26 04:53:59 UTC) #114
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/281754)
4 years, 3 months ago (2016-08-26 07:17:24 UTC) #116
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/2226143002/460001
4 years, 3 months ago (2016-08-26 16:13:42 UTC) #118
commit-bot: I haz the power
Committed patchset #24 (id:460001)
4 years, 3 months ago (2016-08-26 17:09:31 UTC) #120
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 17:11:35 UTC) #122
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/d04d18d7205ad8f2ea24bfa956a833193c6531f9
Cr-Commit-Position: refs/heads/master@{#414735}

Powered by Google App Engine
This is Rietveld 408576698