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

Unified Diff: Source/modules/mediasource/URLMediaSource.cpp

Issue 266453005: Apply TypeChecking to MediaSource IDLs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use MAX_VALUE instead of POS_INF. Created 6 years, 8 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 | « Source/modules/mediasource/SourceBuffer.idl ('k') | Source/modules/mediasource/URLMediaSource.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediasource/URLMediaSource.cpp
diff --git a/Source/modules/mediasource/URLMediaSource.cpp b/Source/modules/mediasource/URLMediaSource.cpp
index 96fe6c2e4d83cffe623b04988127950feeeca132..688eac1f1e6e7c48304b2401061d1808d867d1d3 100644
--- a/Source/modules/mediasource/URLMediaSource.cpp
+++ b/Source/modules/mediasource/URLMediaSource.cpp
@@ -42,7 +42,7 @@ String URLMediaSource::createObjectURL(ExecutionContext* executionContext, Media
// Since WebWorkers cannot obtain MediaSource objects, we should be on the main thread.
ASSERT(isMainThread());
- if (!executionContext || !source)
+ if (!executionContext)
return String();
return DOMURL::createPublicURL(executionContext, source);
}
« no previous file with comments | « Source/modules/mediasource/SourceBuffer.idl ('k') | Source/modules/mediasource/URLMediaSource.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698