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

Unified Diff: net/base/directory_lister.cc

Issue 13315: Move file enumeration to filepaths. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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 | « chrome/browser/user_data_manager.cc ('k') | net/disk_cache/cache_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/directory_lister.cc
===================================================================
--- net/base/directory_lister.cc (revision 6739)
+++ net/base/directory_lister.cc (working copy)
@@ -84,10 +84,10 @@
return;
}
- file_util::FileEnumerator file_enum(dir_.ToWStringHack(), false,
+ file_util::FileEnumerator file_enum(dir_, false,
file_util::FileEnumerator::FILES_AND_DIRECTORIES);
- while (!canceled_ && !(file_enum.Next().empty())) {
+ while (!canceled_ && !(file_enum.Next().value().empty())) {
file_enum.GetFindInfo(&e->data[e->count]);
if (++e->count == kFilesPerEvent) {
« no previous file with comments | « chrome/browser/user_data_manager.cc ('k') | net/disk_cache/cache_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698