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

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 be3187994178929daf7fd28a4e1b9dadeeed5996..89b107208104b9d6f998dd1bbe84048ec7238731 100644
--- a/chrome/test/automation/automation_json_requests.h
+++ b/chrome/test/automation/automation_json_requests.h
@@ -454,4 +454,20 @@ bool SendUninstallExtensionJSONRequest(
const 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_
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/test/automation/automation_json_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698