Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: chrome/test/chromedriver/

Issue 288193004: [Chromedriver] Add Device Metrics override support to ChromeDriver via Capabilities (Closed) Base URL:
Patch Set: Created 6 years, 7 months 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/chromedriver/
diff --git a/chrome/test/chromedriver/ b/chrome/test/chromedriver/
index b0ad052b4d51cf0fdb40128d450b86ff33c2fde0..864ffd7fa53459f950b43927aced3df20eac65ca 100644
--- a/chrome/test/chromedriver/
+++ b/chrome/test/chromedriver/
@@ -81,6 +81,8 @@ scoped_ptr<base::DictionaryValue> CreateCapabilities(Chrome* chrome) {
caps->SetBoolean("handlesAlerts", true);
caps->SetBoolean("databaseEnabled", false);
caps->SetBoolean("locationContextEnabled", true);
+ caps->SetBoolean("mobileEmulationEnabled",
+ chrome->IsMobileEmulationEnabled());
caps->SetBoolean("applicationCacheEnabled", false);
caps->SetBoolean("browserConnectionEnabled", false);
caps->SetBoolean("cssSelectorsEnabled", true);
@@ -99,7 +101,6 @@ scoped_ptr<base::DictionaryValue> CreateCapabilities(Chrome* chrome) {
return caps.Pass();
Status InitSessionHelper(
const InitSessionParams& bound_params,
Session* session,

Powered by Google App Engine
This is Rietveld 408576698