| Index: chrome/test/automation/automation_json_requests.cc
|
| diff --git a/chrome/test/automation/automation_json_requests.cc b/chrome/test/automation/automation_json_requests.cc
|
| index e5419ce6bfa620adc2ecc10f47fb6b0cadc1f8ec..13aefc4aad9a2d88eb712452cc48968b3e47713d 100644
|
| --- a/chrome/test/automation/automation_json_requests.cc
|
| +++ b/chrome/test/automation/automation_json_requests.cc
|
| @@ -806,3 +806,30 @@ bool SendUninstallExtensionJSONRequest(
|
| }
|
| return true;
|
| }
|
| +
|
| +bool SendSetLocalStatePreferenceJSONRequest(
|
| + AutomationMessageSender* sender,
|
| + const std::string& pref,
|
| + base::Value* value,
|
| + std::string* error_msg) {
|
| + DictionaryValue dict;
|
| + dict.SetString("command", "SetLocalStatePrefs");
|
| + dict.SetString("path", pref);
|
| + dict.Set("value", value);
|
| + DictionaryValue reply_dict;
|
| + return SendAutomationJSONRequest(sender, dict, &reply_dict, error_msg);
|
| +}
|
| +
|
| +bool SendSetPreferenceJSONRequest(
|
| + AutomationMessageSender* sender,
|
| + const std::string& pref,
|
| + base::Value* value,
|
| + std::string* error_msg) {
|
| + DictionaryValue dict;
|
| + dict.SetString("command", "SetPrefs");
|
| + dict.SetInteger("windex", 0);
|
| + dict.SetString("path", pref);
|
| + dict.Set("value", value);
|
| + DictionaryValue reply_dict;
|
| + return SendAutomationJSONRequest(sender, dict, &reply_dict, error_msg);
|
| +}
|
|
|