Commit b70e95ed authored by Makoto Shimazu's avatar Makoto Shimazu Committed by Commit Bot

Do inital read of a mojo data pipe instaed of relying on SimpleWatcher

This is cherry-picking the change made on https://crrev.com/c/1449441, expect
for enabling ResourceLoadViaDataPipe.

TBR=yhirano@chromium.org, kinuko@chromium.org

Bug: 894819, 927184, 926849
Change-Id: I229d09a68bd08722b42046c15e5a5243695eff94
Reviewed-on: https://chromium-review.googlesource.com/c/1454345Reviewed-by: default avatarMakoto Shimazu <shimazu@chromium.org>
Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
Commit-Queue: Makoto Shimazu <shimazu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#629073}
parent 655fc905
...@@ -920,7 +920,7 @@ void WebURLLoaderImpl::Context::OnStartLoadingResponseBody( ...@@ -920,7 +920,7 @@ void WebURLLoaderImpl::Context::OnStartLoadingResponseBody(
MOJO_TRIGGER_CONDITION_SIGNALS_SATISFIED, MOJO_TRIGGER_CONDITION_SIGNALS_SATISFIED,
base::BindRepeating(&WebURLLoaderImpl::Context::OnBodyAvailable, this)); base::BindRepeating(&WebURLLoaderImpl::Context::OnBodyAvailable, this));
if (defers_loading_ == NOT_DEFERRING) if (defers_loading_ == NOT_DEFERRING)
body_watcher_.ArmOrNotify(); OnBodyAvailable(MOJO_RESULT_OK, {});
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment