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

Unified Diff: chrome/test/chromedriver/capabilities.cc

Issue 613163004: [chromedriver] setting browser default download directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/capabilities.cc
diff --git a/chrome/test/chromedriver/capabilities.cc b/chrome/test/chromedriver/capabilities.cc
index 19ccd76bd7a59364b111630e8eec1c4a9925956b..141a63a3bf54f25ecb756f6a06b5764b76664c93 100644
--- a/chrome/test/chromedriver/capabilities.cc
+++ b/chrome/test/chromedriver/capabilities.cc
@@ -557,6 +557,13 @@ bool Capabilities::IsRemoteBrowser() const {
}
Status Capabilities::Parse(const base::DictionaryValue& desired_caps) {
+ // get user prefs and assign to Capabilities prefs
+ const base::DictionaryValue* _prefs = NULL;
+ if (desired_caps.GetDictionary("prefs", &_prefs)) {
+ prefs.reset(new base::DictionaryValue());
+ prefs->MergeDictionary(_prefs);
+ }
+ //
samuong 2014/10/01 20:22:12 Could you move this out to a separate function and
andrewcheng 2014/10/08 22:08:26 Done.
std::map<std::string, Parser> parser_map;
parser_map["chromeOptions"] = base::Bind(&ParseChromeOptions);
parser_map["loggingPrefs"] = base::Bind(&ParseLoggingPrefs);
« no previous file with comments | « no previous file | chrome/test/chromedriver/client/chromedriver.py » ('j') | chrome/test/chromedriver/client/chromedriver.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698