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

Unified Diff: Source/modules/mediastream/MediaStreamEvent.cpp

Issue 85263002: Improve handling of dictionary conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have conversion methods take a context argument; elaborate error msgs further. Created 7 years, 1 month 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: Source/modules/mediastream/MediaStreamEvent.cpp
diff --git a/Source/modules/mediastream/MediaStreamEvent.cpp b/Source/modules/mediastream/MediaStreamEvent.cpp
index 11211e4507574b559671f1cb2a7d27d17eb6973d..0b97418f722819799ea02371b599218365226afd 100644
--- a/Source/modules/mediastream/MediaStreamEvent.cpp
+++ b/Source/modules/mediastream/MediaStreamEvent.cpp
@@ -77,6 +77,12 @@ MediaStream* MediaStreamEvent::stream() const
return m_stream.get();
}
+MediaStream* MediaStreamEvent::stream(bool& isNull) const
+{
+ isNull = !m_stream;
+ return m_stream.get();
+}
+
const AtomicString& MediaStreamEvent::interfaceName() const
{
return EventNames::MediaStreamEvent;

Powered by Google App Engine
This is Rietveld 408576698