Index: chrome/test/automation/automation_json_requests.h |
diff --git a/chrome/test/automation/automation_json_requests.h b/chrome/test/automation/automation_json_requests.h |
index 28d607d334d6a466747a8cb020b6b1f32b4359e9..85e9a7839e9ac829189497040911f00313df2d87 100644 |
--- a/chrome/test/automation/automation_json_requests.h |
+++ b/chrome/test/automation/automation_json_requests.h |
@@ -332,4 +332,20 @@ bool SendInstallExtensionJSONRequest( |
std::string* extension_id, |
std::string* error_msg) WARN_UNUSED_RESULT; |
+// Requests the local state preference to be set to the given value. |
+// Ownership of |value| is taken by this function. Returns true on success. |
+bool SendSetLocalStatePreferenceJSONRequest( |
+ AutomationMessageSender* sender, |
+ const std::string& pref, |
+ base::Value* value, |
+ std::string* error_msg) WARN_UNUSED_RESULT; |
+ |
+// Requests the user preference to be set to the given value. |
+// Ownership of |value| is taken by this function. Returns true on success. |
+bool SendSetPreferenceJSONRequest( |
+ AutomationMessageSender* sender, |
+ const std::string& pref, |
+ base::Value* value, |
+ std::string* error_msg) WARN_UNUSED_RESULT; |
+ |
#endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ |