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

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

Issue 858353002: [chromedriver] Fixed window SendKeys (single quote missing) problem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor change on variable name Created 5 years, 10 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
« no previous file with comments | « no previous file | chrome/test/chromedriver/keycode_text_conversion.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/chrome_launcher.cc
diff --git a/chrome/test/chromedriver/chrome_launcher.cc b/chrome/test/chromedriver/chrome_launcher.cc
index 03a5e1f6593010b06c143a4dc736727c7f71f6a9..fe3f0a45b8929c13fe1bf04a6b04638420a6dba5 100644
--- a/chrome/test/chromedriver/chrome_launcher.cc
+++ b/chrome/test/chromedriver/chrome_launcher.cc
@@ -53,6 +53,7 @@
#include <sys/types.h>
#elif defined(OS_WIN)
#include "base/win/scoped_handle.h"
+#include "chrome/test/chromedriver/keycode_text_conversion.h"
#endif
namespace {
@@ -344,6 +345,10 @@ Status LaunchDesktopChrome(
options.stderr_handle = out_write;
options.stdin_handle = GetStdHandle(STD_INPUT_HANDLE);
options.inherit_handles = true;
+
+ if (!SwitchToUSKeyboardLayout())
+ VLOG(0) << "Can not set to US keyboard layout - Some keycodes may be"
+ "interpreted incorrectly";
#endif
#if defined(OS_WIN)
« no previous file with comments | « no previous file | chrome/test/chromedriver/keycode_text_conversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698