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

Unified Diff: chrome/test/webdriver/webdriver_automation.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
« no previous file with comments | « chrome/test/webdriver/test/content_setting_test.html ('k') | chrome/test/webdriver/webdriver_automation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/webdriver_automation.h
diff --git a/chrome/test/webdriver/webdriver_automation.h b/chrome/test/webdriver/webdriver_automation.h
index afc680039b9982e1558deabb4051504efcbd83a5..03288710fcb9dc8979b4e3931cdf09cb9a399c37 100644
--- a/chrome/test/webdriver/webdriver_automation.h
+++ b/chrome/test/webdriver/webdriver_automation.h
@@ -28,6 +28,7 @@ class WebViewLocator;
namespace base {
class DictionaryValue;
class ListValue;
+class Value;
}
namespace webdriver {
@@ -205,6 +206,17 @@ class Automation {
// Uninstalls the given extension.
void UninstallExtension(const std::string& extension_id, Error** error);
+ // Set a local state preference, which is not associated with any profile.
+ // Ownership of |value| is taken by this function.
+ void SetLocalStatePreference(const std::string& pref,
+ base::Value* value,
+ Error** error);
+
+ // Set a user preference, which is associated with the current profile.
+ // Ownership of |value| is taken by this fucntion.
+ void SetPreference(const std::string& pref,
+ base::Value* value,
+ Error** error);
private:
AutomationProxy* automation() const;
« no previous file with comments | « chrome/test/webdriver/test/content_setting_test.html ('k') | chrome/test/webdriver/webdriver_automation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698