Index: third_party/WebKit/Source/modules/sensor/SensorProxy.cpp |
diff --git a/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp b/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp |
index 226d9f7fabde0c646207577d81e715dd52dd257c..9fb52ad687eb5eb37acdfed54bcb74e71e354ac2 100644 |
--- a/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp |
+++ b/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp |
@@ -190,7 +190,8 @@ void SensorProxy::onSensorCreated(SensorInitParamsPtr params, |
SensorClientRequest clientRequest) { |
DCHECK_EQ(Initializing, m_state); |
if (!params) { |
- handleSensorError(NotFoundError, "Sensor is not present on the platform."); |
+ handleSensorError(NotReadableError, |
+ "Sensor is not present on the platform."); |
return; |
} |
const size_t kReadBufferSize = sizeof(ReadingBuffer); |