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

Unified Diff: content/browser/renderer_host/input/web_input_event_util.cc

Issue 1280473002: Update ToLower/UpperASCII API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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: content/browser/renderer_host/input/web_input_event_util.cc
diff --git a/content/browser/renderer_host/input/web_input_event_util.cc b/content/browser/renderer_host/input/web_input_event_util.cc
index ab4880739f248ff9d3fc83650c669eb83bebb351..973856df317f56eae24bd53967ecc08fc58ba346 100644
--- a/content/browser/renderer_host/input/web_input_event_util.cc
+++ b/content/browser/renderer_host/input/web_input_event_util.cc
@@ -153,10 +153,11 @@ void UpdateWindowsKeyCodeAndKeyIdentifier(blink::WebKeyboardEvent* event,
if (id) {
base::strlcpy(event->keyIdentifier, id, sizeof(event->keyIdentifier) - 1);
} else {
- base::snprintf(event->keyIdentifier,
- sizeof(event->keyIdentifier),
- "U+%04X",
- base::ToUpperASCII(static_cast<int>(windows_key_code)));
+ base::snprintf(
+ event->keyIdentifier,
+ sizeof(event->keyIdentifier),
+ "U+%04X",
+ base::ToUpperASCII(static_cast<base::char16>(windows_key_code)));
}
}

Powered by Google App Engine
This is Rietveld 408576698