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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_database_unittest.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/printing/printing_layout_uitest.cc ('k') | chrome/browser/user_data_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_database_unittest.cc
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_database_unittest.cc (revision 6739)
+++ chrome/browser/safe_browsing/safe_browsing_database_unittest.cc (working copy)
@@ -1114,9 +1114,10 @@
if (!updates_path.empty()) {
std::wstring data_dir = GetFullSBDataPath(updates_path);
file_util::FileEnumerator file_enum(
- data_dir, false, file_util::FileEnumerator::FILES);
+ FilePath::FromWStringHack(data_dir), false,
+ file_util::FileEnumerator::FILES);
while (true) {
- std::wstring file = file_enum.Next();
+ std::wstring file = file_enum.Next().ToWStringHack();
if (file.empty())
break;
« no previous file with comments | « chrome/browser/printing/printing_layout_uitest.cc ('k') | chrome/browser/user_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698