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

Unified Diff: base/i18n/file_util_icu.cc

Issue 102993018: Remove UTF string conversion functions from the global namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: aaaaaaaaaa Created 7 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 | « base/command_line_unittest.cc ('k') | base/i18n/file_util_icu_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/file_util_icu.cc
diff --git a/base/i18n/file_util_icu.cc b/base/i18n/file_util_icu.cc
index 9b0525086d0166d73657292880130737edc5cd90..3864d225a7dde876d69b279b985a65c363aa53e7 100644
--- a/base/i18n/file_util_icu.cc
+++ b/base/i18n/file_util_icu.cc
@@ -145,14 +145,16 @@ bool LocaleAwareCompareFilenames(const base::FilePath& a,
#if defined(OS_WIN)
return base::i18n::CompareString16WithCollator(collator.get(),
- WideToUTF16(a.value()), WideToUTF16(b.value())) == UCOL_LESS;
+ base::WideToUTF16(a.value()), base::WideToUTF16(b.value())) == UCOL_LESS;
#elif defined(OS_POSIX)
// On linux, the file system encoding is not defined. We assume
// SysNativeMBToWide takes care of it.
- return base::i18n::CompareString16WithCollator(collator.get(),
- WideToUTF16(base::SysNativeMBToWide(a.value().c_str())),
- WideToUTF16(base::SysNativeMBToWide(b.value().c_str()))) == UCOL_LESS;
+ return base::i18n::CompareString16WithCollator(
+ collator.get(),
+ base::WideToUTF16(base::SysNativeMBToWide(a.value().c_str())),
+ base::WideToUTF16(base::SysNativeMBToWide(b.value().c_str()))
+ ) == UCOL_LESS;
#else
#error Not implemented on your system
#endif
« no previous file with comments | « base/command_line_unittest.cc ('k') | base/i18n/file_util_icu_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698