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

Issue 3027042: Speculative fix for chromium-os:4706 - use singleton NetworkLibrary rather than create our own (Closed)

Created:
10 years, 4 months ago by joth
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Speculative fix for chromium-os:4706 - use singleton NetworkLibrary rather than create our own BUG=chromium-os:4706 TEST=open chrome os, go to maps.google.com click my location, check it doesn't crash. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55204

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -7 lines) Patch
M chrome/browser/geolocation/wifi_data_provider_chromeos.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/geolocation/wifi_data_provider_chromeos.cc View 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
joth
10 years, 4 months ago (2010-08-05 12:55:36 UTC) #1
joth
+ davemoore@chromium.org Just noticed your http://src.chromium.org/viewvc/chrome?view=rev&revision=54950 impacted this code (alas, the european git mirror lag ...
10 years, 4 months ago (2010-08-05 13:18:04 UTC) #2
joth
As this is beta blocker, I'll go ahead and submit TBR. On 5 August 2010 ...
10 years, 4 months ago (2010-08-06 09:16:21 UTC) #3
joth
10 years, 4 months ago (2010-08-06 09:16:30 UTC) #4
bulach
LGTM
10 years, 4 months ago (2010-08-06 09:22:33 UTC) #5
Charlie Lee (do not use)
LGTM too, but I don't think that will fix this issue. We only have one ...
10 years, 4 months ago (2010-08-06 17:28:00 UTC) #6
joth
10 years, 4 months ago (2010-08-06 17:46:20 UTC) #7
On 6 August 2010 18:27, Charlie Lee <chocobo@google.com> wrote:

> LGTM too, but I don't think that will fix this issue. We only have one
> instance of NetworkLibrary and it never gets deleted.
>
Nothing actually enforces this though. Stashing the NetworkLibrary instance
in the scoped_ptr (like this code was) will result in premature deletion,
when the WifiDataProviderChromeOs is deleted.

However! Note the bug with call stack was reported on an earlier version of
this code, before Dave's changes:
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/geolocation/wi...

In that version, an additional instance of NetworkLibrary was being created.
But it was being constructed on the wrong thread, that is the IO thread,
thereby likely exercising an untested path in the NetworkLibrary constructor




>
> I will take a look at the crash to see if I see anything.
>
> Yes please do! more eyes the better (and it's now getting to the end of the
day/week UK time)



> - Charlie
>
> On Aug 6, 2010 2:22:33 AM PDT, bulach <bulach@chromium.org> wrote:
>
>> LGTM
>>
>

Powered by Google App Engine
This is Rietveld 408576698