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