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

Unified Diff: device/geolocation/wifi_data_provider_chromeos.h

Issue 2584733002: WifiDataProviderChromeOs: Call NetworkHandler from correct task runner. (Closed)
Patch Set: Rebase + Elim unnecessary headers Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/geolocation/wifi_data_provider_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/wifi_data_provider_chromeos.h
diff --git a/device/geolocation/wifi_data_provider_chromeos.h b/device/geolocation/wifi_data_provider_chromeos.h
index 04ad9c43b4480d4f2405a91e4858f61383622207..f9630f6fc634161bfabc8ae4ef77b0fedd19767a 100644
--- a/device/geolocation/wifi_data_provider_chromeos.h
+++ b/device/geolocation/wifi_data_provider_chromeos.h
@@ -12,10 +12,6 @@
#include "device/geolocation/wifi_data_provider.h"
#include "device/geolocation/wifi_polling_policy.h"
-namespace base {
-class SingleThreadTaskRunner;
-}
-
namespace device {
class DEVICE_GEOLOCATION_EXPORT WifiDataProviderChromeOs
@@ -32,9 +28,8 @@ class DEVICE_GEOLOCATION_EXPORT WifiDataProviderChromeOs
friend class GeolocationChromeOsWifiDataProviderTest;
~WifiDataProviderChromeOs() override;
- // UI thread
- void DoWifiScanTaskOnUIThread(); // The polling task
- void DoStartTaskOnUIThread();
+ // NetworkHandler thread
+ void DoWifiScanTaskOnNetworkHandlerThread();
// Client thread
void DidWifiScanTaskNoResults();
@@ -64,9 +59,6 @@ class DEVICE_GEOLOCATION_EXPORT WifiDataProviderChromeOs
// Whether we've successfully completed a scan for WiFi data. (client thread)
bool is_first_scan_complete_;
- // Used to PostTask()s from the geolocation thread to creation thread.
- const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
-
DISALLOW_COPY_AND_ASSIGN(WifiDataProviderChromeOs);
};
« no previous file with comments | « no previous file | device/geolocation/wifi_data_provider_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698