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

Unified Diff: chrome/test/webdriver/webdriver_capabilities_parser.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/webdriver/webdriver_capabilities_parser.h
diff --git a/chrome/test/webdriver/webdriver_capabilities_parser.h b/chrome/test/webdriver/webdriver_capabilities_parser.h
index 8f9320d89675d647084bf0476513ded3d90d62f6..4204186d02c3ab271938e7f42100845045d9d182 100644
--- a/chrome/test/webdriver/webdriver_capabilities_parser.h
+++ b/chrome/test/webdriver/webdriver_capabilities_parser.h
@@ -49,6 +49,13 @@ struct Capabilities {
// WebKit APIs.
bool native_events;
+ // By default, ChromeDriver configures Chrome in such a way as convenient
+ // for website testing. E.g., it configures Chrome so that sites are allowed
+ // to use the geolocation API without requesting the user's consent.
+ // If this is set to true, ChromeDriver will not modify Chrome's default
+ // behavior.
+ bool no_website_testing_defaults;
+
// Path to a custom profile to use.
FilePath profile;
@@ -83,6 +90,7 @@ class CapabilitiesParser {
Error* ParseLoadAsync(const base::Value* option);
Error* ParseNativeEvents(const base::Value* option);
Error* ParseProfile(const base::Value* option);
+ Error* ParseNoWebsiteTestingDefaults(const base::Value* option);
Error* ParseVerbose(const base::Value* option);
// Decodes the given base64-encoded string, optionally unzips it, and
// writes the result to |path|.
« no previous file with comments | « chrome/test/webdriver/webdriver_automation.cc ('k') | chrome/test/webdriver/webdriver_capabilities_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698