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

Unified Diff: content/browser/geolocation/empty_device_data_provider.h

Issue 10535157: [WIP] attempt to allow chrome OS to inject its wifi data provider (Closed) Base URL: http://git.chromium.org/chromium/src.git@remove_radio
Patch Set: Created 8 years, 6 months 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
Index: content/browser/geolocation/empty_device_data_provider.h
diff --git a/content/browser/geolocation/empty_device_data_provider.h b/content/browser/geolocation/empty_device_data_provider.h
index bf759ab76959287fb634b2acdb4d44d97bac2f78..9924c3484ff61ba443f33bb25e129e9f115346ee 100644
--- a/content/browser/geolocation/empty_device_data_provider.h
+++ b/content/browser/geolocation/empty_device_data_provider.h
@@ -6,13 +6,12 @@
#define CONTENT_BROWSER_GEOLOCATION_EMPTY_DEVICE_DATA_PROVIDER_H_
#pragma once
-#include "content/browser/geolocation/device_data_provider.h"
+#include "content/browser/geolocation/wifi_data_provider.h"
// An implementation of DeviceDataProviderImplBase that does not provide any
// data. Used on platforms where a given data type is not available.
-template<typename DataType>
-class EmptyDeviceDataProvider : public DeviceDataProviderImplBase<DataType> {
+class EmptyDeviceDataProvider : public WifiDataProviderImplBase {
public:
EmptyDeviceDataProvider() {}
virtual ~EmptyDeviceDataProvider() {}
@@ -20,7 +19,7 @@ class EmptyDeviceDataProvider : public DeviceDataProviderImplBase<DataType> {
// DeviceDataProviderImplBase implementation
virtual bool StartDataProvider() { return true; }
virtual void StopDataProvider() { }
- virtual bool GetData(DataType *data) {
+ virtual bool GetData(WifiData *data) {
DCHECK(data);
// This is all the data we can get - nothing.
return true;

Powered by Google App Engine
This is Rietveld 408576698