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

Unified Diff: ui/aura/bench/bench_main.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 | « remoting/protocol/negotiating_host_authenticator.cc ('k') | ui/base/ime/input_method_auralinux_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/bench/bench_main.cc
diff --git a/ui/aura/bench/bench_main.cc b/ui/aura/bench/bench_main.cc
index aa4ea4a3f52e49d79eda4c70ab3067b503c2746b..f3a058a533aa8269f1a0eb677b4507696ce23284 100644
--- a/ui/aura/bench/bench_main.cc
+++ b/ui/aura/bench/bench_main.cc
@@ -170,8 +170,8 @@ class WebGLBench : public BenchCompositorObserver {
int width = 0;
int height = 0;
if (!webgl_size.empty()) {
- std::vector<std::string> split_size;
- base::SplitString(webgl_size, 'x', &split_size);
+ std::vector<std::string> split_size = base::SplitString(
+ webgl_size, "x", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
if (split_size.size() == 2) {
width = atoi(split_size[0].c_str());
height = atoi(split_size[1].c_str());
« no previous file with comments | « remoting/protocol/negotiating_host_authenticator.cc ('k') | ui/base/ime/input_method_auralinux_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698