summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/automation_json_requests.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/automation/automation_json_requests.cc')
-rw-r--r--chrome/test/automation/automation_json_requests.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/test/automation/automation_json_requests.cc b/chrome/test/automation/automation_json_requests.cc
index 11fc25a..059c11e 100644
--- a/chrome/test/automation/automation_json_requests.cc
+++ b/chrome/test/automation/automation_json_requests.cc
@@ -901,3 +901,13 @@ bool SendSetPreferenceJSONRequest(
DictionaryValue reply_dict;
return SendAutomationJSONRequest(sender, dict, &reply_dict, error);
}
+
+bool SendOverrideGeolocationJSONRequest(
+ AutomationMessageSender* sender,
+ base::DictionaryValue* geolocation,
+ Error* error) {
+ scoped_ptr<DictionaryValue> dict(geolocation->DeepCopy());
+ dict->SetString("command", "OverrideGeoposition");
+ DictionaryValue reply_dict;
+ return SendAutomationJSONRequest(sender, *dict.get(), &reply_dict, error);
+}