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

Unified Diff: chrome/browser/greasemonkey_master.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/extensions/extensions_service.cc ('k') | chrome/browser/history/text_database_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « chrome/browser/extensions/extensions_service.cc ('k') | chrome/browser/history/text_database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698