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

Issue 2584733002: WifiDataProviderChromeOs: Call NetworkHandler from correct task runner. (Closed)

Created:
4 years ago by stevenjb
Modified:
4 years ago
Reviewers:
mcasas, emaxx
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WifiDataProviderChromeOs: Call NetworkHandler from correct task runner. At some point, WifiDataProviderChromeOs construction changed to the GeolocationProviderImpl thread, making the following code in its constructor incorrect: main_task_runner_(base::ThreadTaskRunnerHandle::Get()) Rather than relying on a "main" task runner for NetworkHandger calls, use NetworkHandler::Get()->task_runner() instead. BUG=674153, 661304 Committed: https://crrev.com/43c6a582d94fe6ec49330636c819601650f63a24 Cr-Commit-Position: refs/heads/master@{#439253}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Explicitly include network_handler.h #

Total comments: 4

Patch Set 3 : Rebase + Elim unnecessary headers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -33 lines) Patch
M device/geolocation/wifi_data_provider_chromeos.h View 3 chunks +2 lines, -10 lines 0 comments Download
M device/geolocation/wifi_data_provider_chromeos.cc View 1 2 7 chunks +29 lines, -23 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
stevenjb
Tested with these instructions to confirm that this fixes the DCHECK: https://bugs.chromium.org/p/chromium/issues/detail?id=674153#c8
4 years ago (2016-12-15 23:00:40 UTC) #3
emaxx
lgtm Thanks for quick fix! https://codereview.chromium.org/2584733002/diff/1/device/geolocation/wifi_data_provider_chromeos.cc File device/geolocation/wifi_data_provider_chromeos.cc (right): https://codereview.chromium.org/2584733002/diff/1/device/geolocation/wifi_data_provider_chromeos.cc#newcode18 device/geolocation/wifi_data_provider_chromeos.cc:18: using chromeos::NetworkHandler; nit: #include ...
4 years ago (2016-12-16 00:13:22 UTC) #4
stevenjb
https://codereview.chromium.org/2584733002/diff/1/device/geolocation/wifi_data_provider_chromeos.cc File device/geolocation/wifi_data_provider_chromeos.cc (right): https://codereview.chromium.org/2584733002/diff/1/device/geolocation/wifi_data_provider_chromeos.cc#newcode18 device/geolocation/wifi_data_provider_chromeos.cc:18: using chromeos::NetworkHandler; On 2016/12/16 00:13:22, emaxx wrote: > nit: ...
4 years ago (2016-12-16 18:56:42 UTC) #5
mcasas
lgtm https://codereview.chromium.org/2584733002/diff/20001/device/geolocation/wifi_data_provider_chromeos.cc File device/geolocation/wifi_data_provider_chromeos.cc (right): https://codereview.chromium.org/2584733002/diff/20001/device/geolocation/wifi_data_provider_chromeos.cc#newcode12 device/geolocation/wifi_data_provider_chromeos.cc:12: #include "base/single_thread_task_runner.h" Probably not needed now. https://codereview.chromium.org/2584733002/diff/20001/device/geolocation/wifi_data_provider_chromeos.cc#newcode133 device/geolocation/wifi_data_provider_chromeos.cc:133: ...
4 years ago (2016-12-16 22:46:26 UTC) #6
stevenjb
https://codereview.chromium.org/2584733002/diff/20001/device/geolocation/wifi_data_provider_chromeos.cc File device/geolocation/wifi_data_provider_chromeos.cc (right): https://codereview.chromium.org/2584733002/diff/20001/device/geolocation/wifi_data_provider_chromeos.cc#newcode12 device/geolocation/wifi_data_provider_chromeos.cc:12: #include "base/single_thread_task_runner.h" On 2016/12/16 22:46:26, mcasas wrote: > Probably ...
4 years ago (2016-12-16 23:03:35 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/2584733002/40001
4 years ago (2016-12-16 23:04:20 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-17 00:37:45 UTC) #13
commit-bot: I haz the power
4 years ago (2016-12-17 00:39:59 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/43c6a582d94fe6ec49330636c819601650f63a24
Cr-Commit-Position: refs/heads/master@{#439253}

Powered by Google App Engine
This is Rietveld 408576698