Index: chrome/browser/automation/testing_automation_provider.cc |
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc |
index 8d1a45bc2da2d36441d7680be8dff4670f94328b..c2796745ccf8c361e02f59bb6c3d746eed236165 100644 |
--- a/chrome/browser/automation/testing_automation_provider.cc |
+++ b/chrome/browser/automation/testing_automation_provider.cc |
@@ -139,6 +139,7 @@ |
#include "content/public/browser/web_contents.h" |
#include "content/public/common/child_process_host.h" |
#include "content/public/common/common_param_traits.h" |
+#include "content/public/common/geoposition.h" |
#include "content/public/common/ssl_status.h" |
#include "net/cookies/cookie_store.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
@@ -4928,8 +4929,14 @@ void TestingAutomationProvider::OverrideGeoposition( |
"Missing or invalid geolocation parameters"); |
return; |
} |
+ content::Geoposition position; |
+ position.latitude = latitude; |
+ position.longitude = longitude; |
+ position.altitude = altitude; |
+ position.accuracy = 0.; |
+ position.timestamp = base::Time::Now(); |
content::OverrideLocationForTesting( |
- latitude, longitude, altitude, |
+ position, |
base::Bind(&SendSuccessIfAlive, AsWeakPtr(), reply_message)); |
} |