| Index: content/browser/geolocation/libgps_2_94_wrapper_linux.cc
|
| diff --git a/content/browser/geolocation/libgps_2_94_wrapper_linux.cc b/content/browser/geolocation/libgps_2_94_wrapper_linux.cc
|
| index c9fb1bd43b031c38e89f4e2d174c21031feccec9..9d213b843d255e6b00f89d9485f2d77d24abd3bf 100644
|
| --- a/content/browser/geolocation/libgps_2_94_wrapper_linux.cc
|
| +++ b/content/browser/geolocation/libgps_2_94_wrapper_linux.cc
|
| @@ -32,6 +32,11 @@ class LibGpsV294 : public LibGps {
|
| position->latitude = gps_data.fix.latitude;
|
| position->longitude = gps_data.fix.longitude;
|
| position->accuracy = std::max(gps_data.fix.epx, gps_data.fix.epy);
|
| + if (position->accuracy != position->accuracy) {
|
| + // TODO(joth): Fixme. This is a workaround for http://crbug.com/99326
|
| + LOG(WARNING) << "libgps reported accuracy NaN, forcing to zero";
|
| + position->accuracy = 0;
|
| + }
|
| position->altitude = gps_data.fix.altitude;
|
| position->altitude_accuracy = gps_data.fix.epv;
|
| position->heading = gps_data.fix.track;
|
|
|