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

Issue 15968009: Clear Reference Location State When Providers are Stopped (Closed)

Created:
7 years, 6 months ago by robliao
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

Clear Reference Location State When Providers are Stopped The location arbitrator relies on pointer comparisons to identify which location provider provided a reported location. Now, we clear this state when the providers are shut down. This prevents a bug where a stale location prevented the arbitrator from updating its clients with a newer location. BUG=240956 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203924

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M content/browser/geolocation/location_arbitrator_impl.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/geolocation/location_arbitrator_impl_unittest.cc View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
robliao
Here's a fix for 240956
7 years, 6 months ago (2013-05-31 21:11:59 UTC) #1
vadimt
There is no need for 2 "BUG=" in the CL description. https://codereview.chromium.org/15968009/diff/1/content/browser/geolocation/location_arbitrator_impl.cc File content/browser/geolocation/location_arbitrator_impl.cc (right): ...
7 years, 6 months ago (2013-05-31 21:19:58 UTC) #2
robliao
https://codereview.chromium.org/15968009/diff/1/content/browser/geolocation/location_arbitrator_impl.cc File content/browser/geolocation/location_arbitrator_impl.cc (right): https://codereview.chromium.org/15968009/diff/1/content/browser/geolocation/location_arbitrator_impl.cc#newcode74 content/browser/geolocation/location_arbitrator_impl.cc:74: // use fresh locations from the newly constructed providers. ...
7 years, 6 months ago (2013-05-31 21:26:25 UTC) #3
vadimt
https://codereview.chromium.org/15968009/diff/1/content/browser/geolocation/location_arbitrator_impl.cc File content/browser/geolocation/location_arbitrator_impl.cc (right): https://codereview.chromium.org/15968009/diff/1/content/browser/geolocation/location_arbitrator_impl.cc#newcode75 content/browser/geolocation/location_arbitrator_impl.cc:75: position_provider_ = nullptr; On 2013/05/31 21:26:25, Robert Liao wrote: ...
7 years, 6 months ago (2013-05-31 21:38:12 UTC) #4
robliao
On 2013/05/31 21:38:12, vadimt wrote: > https://codereview.chromium.org/15968009/diff/1/content/browser/geolocation/location_arbitrator_impl.cc > File content/browser/geolocation/location_arbitrator_impl.cc (right): > > https://codereview.chromium.org/15968009/diff/1/content/browser/geolocation/location_arbitrator_impl.cc#newcode75 > ...
7 years, 6 months ago (2013-05-31 22:24:28 UTC) #5
robliao
7 years, 6 months ago (2013-05-31 22:45:19 UTC) #6
vadimt
On 2013/05/31 22:24:28, Robert Liao wrote: > On 2013/05/31 21:38:12, vadimt wrote: > > > ...
7 years, 6 months ago (2013-05-31 22:46:02 UTC) #7
vadimt
lgtm LGTM. Please request OWNER's approval from bulach@. He already knows that we've volunteered to ...
7 years, 6 months ago (2013-05-31 22:48:51 UTC) #8
robliao
bulach: I request owner approval for this CL. Thanks! Robert https://codereview.chromium.org/15968009/diff/1/content/browser/geolocation/location_arbitrator_impl.cc File content/browser/geolocation/location_arbitrator_impl.cc (right): https://codereview.chromium.org/15968009/diff/1/content/browser/geolocation/location_arbitrator_impl.cc#newcode74 ...
7 years, 6 months ago (2013-06-01 00:03:24 UTC) #9
bulach
lgtm, thanks! any chance of making an explicit test for the comment you added? http://src.chromium.org/viewvc/chrome/trunk/src/content/browser/geolocation/location_arbitrator_impl_unittest.cc
7 years, 6 months ago (2013-06-03 10:50:54 UTC) #10
robliao
Added a unit test to test 240956
7 years, 6 months ago (2013-06-03 18:25:39 UTC) #11
vadimt
lgtm Still LGTM
7 years, 6 months ago (2013-06-03 18:58:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/15968009/23004
7 years, 6 months ago (2013-06-03 21:56:03 UTC) #13
commit-bot: I haz the power
7 years, 6 months ago (2013-06-04 11:02:23 UTC) #14
Message was sent while issue was closed.
Change committed as 203924

Powered by Google App Engine
This is Rietveld 408576698