Index: content/browser/download/file_metadata_unittest_linux.cc |
diff --git a/content/browser/download/file_metadata_unittest_linux.cc b/content/browser/download/file_metadata_unittest_linux.cc |
index d3a6ea4c69ef8967342312408a4583d391f738fb..c20e573115ee69d0d29f04ac686b21da893db7fc 100644 |
--- a/content/browser/download/file_metadata_unittest_linux.cc |
+++ b/content/browser/download/file_metadata_unittest_linux.cc |
@@ -82,8 +82,9 @@ class FileMetadataLinuxTest : public testing::Test { |
if (len <= static_cast<ssize_t>(0)) return; |
char* buffer = new char[len]; |
len = listxattr(test_file().value().c_str(), buffer, len); |
- attr_names->clear(); |
- base::SplitString(string(buffer, len), '\0', attr_names); |
+ *attr_names = base::SplitString(string(buffer, len), std::string(1, '\0'), |
+ base::TRIM_WHITESPACE, |
+ base::SPLIT_WANT_ALL); |
delete[] buffer; |
} |