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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 1284833004: Remove remaining legacy SplitString calls. (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
« no previous file with comments | « components/upload_list/upload_list.cc ('k') | device/hid/hid_service_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index ae64537825b7171f698a3b961ad9cc83426dfe04..e4a6b5a1e73282f2596436321bd1b1e9aef562dd 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -424,8 +424,8 @@ void CreateEmbeddedWorkerSetup(
void StringToUintVector(const std::string& str, std::vector<unsigned>* vector) {
DCHECK(vector->empty());
- std::vector<std::string> pieces;
- base::SplitString(str, ',', &pieces);
+ std::vector<std::string> pieces = base::SplitString(
+ str, ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
DCHECK_EQ(pieces.size(), static_cast<size_t>(gfx::BufferFormat::LAST) + 1);
for (size_t i = 0; i < pieces.size(); ++i) {
unsigned number = 0;
« no previous file with comments | « components/upload_list/upload_list.cc ('k') | device/hid/hid_service_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698