Index: util/misc/uuid.cc |
diff --git a/util/misc/uuid.cc b/util/misc/uuid.cc |
index 5f6bf14856191fdb50f84ede3f8fe1fb054214ee..592b7d2b38e12b4e73e5817e60f22fef733e922f 100644 |
--- a/util/misc/uuid.cc |
+++ b/util/misc/uuid.cc |
@@ -20,6 +20,7 @@ |
#include "base/basictypes.h" |
#include "base/strings/stringprintf.h" |
+#include "base/strings/utf_string_conversions.h" |
#include "base/sys_byteorder.h" |
#include "util/stdlib/cxx.h" |
@@ -98,4 +99,10 @@ std::string UUID::ToString() const { |
data_5[5]); |
} |
+#if defined(OS_WIN) |
+std::wstring UUID::ToWideString() const { |
+ return base::UTF8ToUTF16(ToString()); |
+} |
+#endif // OS_WIN |
+ |
} // namespace crashpad |