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

Unified Diff: chrome/test/automation/automation_json_requests.h

Issue 8890026: Allow chromedriver to set local state preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years 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
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_

Powered by Google App Engine
This is Rietveld 408576698