Index: chrome/browser/greasemonkey_master.cc |
=================================================================== |
--- chrome/browser/greasemonkey_master.cc (revision 6739) |
+++ chrome/browser/greasemonkey_master.cc (working copy) |
@@ -113,12 +113,12 @@ |
const FilePath& script_dir) { |
std::vector<std::wstring> scripts; |
- file_util::FileEnumerator enumerator(script_dir.value(), false, |
+ file_util::FileEnumerator enumerator(script_dir, false, |
file_util::FileEnumerator::FILES, |
- L"*.user.js"); |
- for (std::wstring file = enumerator.Next(); !file.empty(); |
+ FILE_PATH_LITERAL("*.user.js")); |
+ for (FilePath file = enumerator.Next(); !file.value().empty(); |
file = enumerator.Next()) { |
- scripts.push_back(file); |
+ scripts.push_back(file.ToWStringHack()); |
} |
if (scripts.empty()) |