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

Unified Diff: ui/base/ime/input_method_auralinux_unittest.cc

Issue 1274123003: Update SplitString calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no media changes 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
« no previous file with comments | « ui/aura/bench/bench_main.cc ('k') | ui/events/devices/x11/touch_factory_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_auralinux_unittest.cc
diff --git a/ui/base/ime/input_method_auralinux_unittest.cc b/ui/base/ime/input_method_auralinux_unittest.cc
index 5c4afc53535bfc6051e54c85d64a860bc40b7179..2cd15008b9df173d75046f30a3e902a3e5e4c9b7 100644
--- a/ui/base/ime/input_method_auralinux_unittest.cc
+++ b/ui/base/ime/input_method_auralinux_unittest.cc
@@ -87,8 +87,9 @@ class LinuxInputMethodContextForTesting : public LinuxInputMethodContext {
}
for (const auto& action : actions_) {
- std::vector<base::string16> parts;
- base::SplitString(action, L':', &parts);
+ std::vector<base::string16> parts = base::SplitString(
+ action, base::string16(1, ':'), base::TRIM_WHITESPACE,
+ base::SPLIT_WANT_ALL);
base::char16 id = parts[0][0];
base::string16 param;
if (parts.size() > 1)
« no previous file with comments | « ui/aura/bench/bench_main.cc ('k') | ui/events/devices/x11/touch_factory_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698