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

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

Issue 1278973003: Revert of 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 c20e573115ee69d0d29f04ac686b21da893db7fc..d3a6ea4c69ef8967342312408a4583d391f738fb 100644
--- a/content/browser/download/file_metadata_unittest_linux.cc
+++ b/content/browser/download/file_metadata_unittest_linux.cc
@@ -82,9 +82,8 @@
if (len <= static_cast<ssize_t>(0)) return;
char* buffer = new char[len];
len = listxattr(test_file().value().c_str(), buffer, len);
- *attr_names = base::SplitString(string(buffer, len), std::string(1, '\0'),
- base::TRIM_WHITESPACE,
- base::SPLIT_WANT_ALL);
+ attr_names->clear();
+ base::SplitString(string(buffer, len), '\0', attr_names);
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