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

Unified Diff: content/browser/download/file_metadata_unittest_linux.cc

Issue 1272823003: Update SplitString calls to new form (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 | « content/browser/browser_main_loop.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698