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

Unified Diff: base/string16.cc

Issue 28292: Convert encryptor.cc and friends to string16. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months 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/string16.h ('k') | chrome/browser/password_manager/encryptor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string16.cc
===================================================================
--- base/string16.cc (revision 10646)
+++ base/string16.cc (working copy)
@@ -13,6 +13,8 @@
#elif defined(WCHAR_T_IS_UTF32)
+#include "base/string_util.h"
+
namespace base {
int c16memcmp(const char16* s1, const char16* s2, size_t n) {
@@ -65,4 +67,8 @@
} // namespace base
+std::ostream& operator<<(std::ostream& out, const string16& str) {
+ return out << UTF16ToUTF8(str);
+}
+
#endif // WCHAR_T_IS_UTF32
« no previous file with comments | « base/string16.h ('k') | chrome/browser/password_manager/encryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698