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

Unified Diff: minidump/minidump_string_writer.h

Issue 1419623003: Write MINIDUMP_HANDLE_DATA_STREAM to minidump (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 5 years, 2 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
Index: minidump/minidump_string_writer.h
diff --git a/minidump/minidump_string_writer.h b/minidump/minidump_string_writer.h
index ec57179ee9a092e6d9fcedb121ca565badbed248..5b82bfd2b98474320eb1c94db61cec8108cbea2c 100644
--- a/minidump/minidump_string_writer.h
+++ b/minidump/minidump_string_writer.h
@@ -99,6 +99,13 @@ class MinidumpUTF16StringWriter final
//! \note Valid in #kStateMutable.
void SetUTF8(const std::string& string_utf8);
+ //! \brief Sets the given UTF-16 string as the string to be written.
+ //!
+ //! \note Valid in #kStateMutable.
+ void SetUTF16(const base::string16& string_utf16) {
+ set_string(string_utf16);
+ }
+
private:
DISALLOW_COPY_AND_ASSIGN(MinidumpUTF16StringWriter);
};

Powered by Google App Engine
This is Rietveld 408576698