2752406: [LSC] Replace base::string16 with std::u16string in //ui
https://chromium-review.googlesource.com/c/chromium/src/+/2752406
This commit is contained in:
parent
d0e88c2476
commit
d4bec23bde
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ This patch makes three changes to Accelerator::GetShortcutText to improve shortc
|
||||||
3. Ctrl-Shift-= should show as Ctrl-+
|
3. Ctrl-Shift-= should show as Ctrl-+
|
||||||
|
|
||||||
diff --git a/ui/base/accelerators/accelerator.cc b/ui/base/accelerators/accelerator.cc
|
diff --git a/ui/base/accelerators/accelerator.cc b/ui/base/accelerators/accelerator.cc
|
||||||
index 1a2a154b743cd4ecccf1be9971f36896e982dc6e..cbd5ce0929b956456424c4e6a159418f7eb91638 100644
|
index 1a2a154b743cd4ecccf1be9971f36896e982dc6e..b5cec83c479dfa584f496f1f73a81e8b9f64d08c 100644
|
||||||
--- a/ui/base/accelerators/accelerator.cc
|
--- a/ui/base/accelerators/accelerator.cc
|
||||||
+++ b/ui/base/accelerators/accelerator.cc
|
+++ b/ui/base/accelerators/accelerator.cc
|
||||||
@@ -12,6 +12,7 @@
|
@@ -12,6 +12,7 @@
|
||||||
|
@ -42,7 +42,7 @@ index 1a2a154b743cd4ecccf1be9971f36896e982dc6e..cbd5ce0929b956456424c4e6a159418f
|
||||||
+ if (c != 0) {
|
+ if (c != 0) {
|
||||||
+ shortcut =
|
+ shortcut =
|
||||||
+ static_cast<base::string16::value_type>(
|
+ static_cast<base::string16::value_type>(
|
||||||
+ base::ToUpperASCII(static_cast<base::char16>(c)));
|
+ base::ToUpperASCII(static_cast<char16_t>(c)));
|
||||||
+ }
|
+ }
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
// Our fallback is to try translate the key code to a regular character
|
// Our fallback is to try translate the key code to a regular character
|
||||||
|
|
Loading…
Reference in a new issue