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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 10316007: Make the Geoposition helper class public (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix forward-declaration of struct as class. Created 8 years, 8 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
« no previous file with comments | « no previous file | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « no previous file | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698