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

Unified Diff: media/blink/multibuffer_data_source.cc

Issue 2271313002: Bugfix for cross-origin check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test added Created 4 years, 4 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 | « media/blink/multibuffer_data_source.h ('k') | media/blink/multibuffer_data_source_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/multibuffer_data_source.cc
diff --git a/media/blink/multibuffer_data_source.cc b/media/blink/multibuffer_data_source.cc
index f1bdc9ffb6ac367b3b27150c0de5f1504f5be41d..f0e38a0a85e6593b3ea349f5eef53726f404791a 100644
--- a/media/blink/multibuffer_data_source.cc
+++ b/media/blink/multibuffer_data_source.cc
@@ -113,6 +113,7 @@ MultibufferDataSource::MultibufferDataSource(
total_bytes_(kPositionNotSpecified),
streaming_(false),
loading_(false),
+ failed_(false),
render_task_runner_(task_runner),
url_index_(url_index),
frame_(frame),
@@ -185,6 +186,7 @@ void MultibufferDataSource::OnRedirect(
const scoped_refptr<UrlData>& destination) {
if (!destination) {
// A failure occured.
+ failed_ = true;
if (!init_cb_.is_null()) {
render_task_runner_->PostTask(
FROM_HERE,
@@ -256,8 +258,7 @@ bool MultibufferDataSource::DidPassCORSAccessCheck() const {
// If init_cb is set, we initialization is not finished yet.
if (!init_cb_.is_null())
return false;
- // Loader will be false if there was a failure.
- if (!reader_)
+ if (failed_)
return false;
return true;
}
« no previous file with comments | « media/blink/multibuffer_data_source.h ('k') | media/blink/multibuffer_data_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698