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

Issue 2331513002: Checks to see if the position is valid before OnLocationUpdate call. (Closed)

Created:
4 years, 3 months ago by CJ
Modified:
4 years, 3 months ago
Reviewers:
Kevin M, Wez
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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Checks to see if the position is valid before OnLocationUpdate call. A StopProvider call from the Engine was being received while a message was being processed to go to the Engine from the Client. This caused the LocationArbitrator to reset. When we came back from sending, the callback tries to get the new location from the LocationArbitrator, but since it was reset, it now has an invalid location. This adds a check for this case. BUG=645230 Committed: https://crrev.com/cb91640779ff557012cbf8bf728afd6166555a49 Cr-Commit-Position: refs/heads/master@{#419258}

Patch Set 1 #

Patch Set 2 : Clears |need_to_send| reguardless if geolocation was valid or not. #

Patch Set 3 : Fixes up tests. #

Total comments: 4

Patch Set 4 : Addresses Wez's #6 comments. #

Patch Set 5 : Fixes up test. #

Patch Set 6 : Tidy up. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M blimp/client/core/geolocation/geolocation_feature.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M blimp/client/core/geolocation/geolocation_feature_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
CJ
4 years, 3 months ago (2016-09-09 21:52:08 UTC) #2
Wez
lgtm
4 years, 3 months ago (2016-09-13 20:22:12 UTC) #3
Wez
https://codereview.chromium.org/2331513002/diff/40001/blimp/client/core/geolocation/geolocation_feature.cc File blimp/client/core/geolocation/geolocation_feature.cc (right): https://codereview.chromium.org/2331513002/diff/40001/blimp/client/core/geolocation/geolocation_feature.cc#newcode147 blimp/client/core/geolocation/geolocation_feature.cc:147: if (need_to_send_message_ && new_position.Validate()) { Hmmm, actually isn't Validate() ...
4 years, 3 months ago (2016-09-13 20:26:08 UTC) #4
CJ
https://codereview.chromium.org/2331513002/diff/40001/blimp/client/core/geolocation/geolocation_feature.cc File blimp/client/core/geolocation/geolocation_feature.cc (right): https://codereview.chromium.org/2331513002/diff/40001/blimp/client/core/geolocation/geolocation_feature.cc#newcode147 blimp/client/core/geolocation/geolocation_feature.cc:147: if (need_to_send_message_ && new_position.Validate()) { On 2016/09/13 20:26:08, Wez ...
4 years, 3 months ago (2016-09-13 22:45:22 UTC) #5
Wez
lgtm https://codereview.chromium.org/2331513002/diff/40001/blimp/client/core/geolocation/geolocation_feature.cc File blimp/client/core/geolocation/geolocation_feature.cc (right): https://codereview.chromium.org/2331513002/diff/40001/blimp/client/core/geolocation/geolocation_feature.cc#newcode147 blimp/client/core/geolocation/geolocation_feature.cc:147: if (need_to_send_message_ && new_position.Validate()) { On 2016/09/13 22:45:22, ...
4 years, 3 months ago (2016-09-16 01:20:27 UTC) #6
CJ
https://codereview.chromium.org/2331513002/diff/40001/blimp/client/core/geolocation/geolocation_feature.cc File blimp/client/core/geolocation/geolocation_feature.cc (right): https://codereview.chromium.org/2331513002/diff/40001/blimp/client/core/geolocation/geolocation_feature.cc#newcode147 blimp/client/core/geolocation/geolocation_feature.cc:147: if (need_to_send_message_ && new_position.Validate()) { On 2016/09/16 01:20:27, Wez ...
4 years, 3 months ago (2016-09-16 18:27:12 UTC) #7
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/2331513002/60001
4 years, 3 months ago (2016-09-16 18:27:49 UTC) #10
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/2331513002/100001
4 years, 3 months ago (2016-09-16 18:54:25 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-16 19:55:45 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 19:57:33 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/cb91640779ff557012cbf8bf728afd6166555a49
Cr-Commit-Position: refs/heads/master@{#419258}

Powered by Google App Engine
This is Rietveld 408576698