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

Unified Diff: chrome/test/webdriver/commands/create_session.cc

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/pyautolib/pyauto.py ('k') | chrome/test/webdriver/test/chromedriver_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/commands/create_session.cc
diff --git a/chrome/test/webdriver/commands/create_session.cc b/chrome/test/webdriver/commands/create_session.cc
index f78fa382d2a988bedc20bf36c32ffa7c614e6d1f..4f07f3a857c3126822d166eb5b495dcb08dc8935 100644
--- a/chrome/test/webdriver/commands/create_session.cc
+++ b/chrome/test/webdriver/commands/create_session.cc
@@ -57,6 +57,9 @@ void CreateSession::ExecutePost(Response* const response) {
Session::Options session_options;
session_options.load_async = caps.load_async;
session_options.use_native_events = caps.native_events;
+ session_options.no_website_testing_defaults =
+ caps.no_website_testing_defaults;
+ session_options.extensions = caps.extensions;
Automation::BrowserOptions browser_options;
browser_options.command = caps.command;
@@ -72,15 +75,6 @@ void CreateSession::ExecutePost(Response* const response) {
return;
}
- // Install extensions.
- for (size_t i = 0; i < caps.extensions.size(); ++i) {
- Error* error = session->InstallExtensionDeprecated(caps.extensions[i]);
- if (error) {
- response->SetError(error);
- return;
- }
- }
-
LOG(INFO) << "Created session " << session->id();
// Redirect to a relative URI. Although prohibited by the HTTP standard,
// this is what the IEDriver does. Finding the actual IP address is
« no previous file with comments | « chrome/test/pyautolib/pyauto.py ('k') | chrome/test/webdriver/test/chromedriver_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698