diff options
Diffstat (limited to 'chrome/test/automation/automation_json_requests.cc')
| -rw-r--r-- | chrome/test/automation/automation_json_requests.cc | 10 |
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); +} |
