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))); |
} |
} |