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

Unified Diff: content/test/test_navigation_url_loader_delegate.cc

Issue 2549373004: PlzNavigate: Call NavigationHandle::WillProcessResponse for 204/205s (Closed)
Patch Set: Rebase + addressed comments Created 4 years 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 | « content/browser/loader/navigation_resource_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_navigation_url_loader_delegate.cc
diff --git a/content/test/test_navigation_url_loader_delegate.cc b/content/test/test_navigation_url_loader_delegate.cc
index cc8f0b3b145eed869c277fd68f4d065eeeb9dcb5..443749b0cf458893fea085c145f43cf80301c773 100644
--- a/content/test/test_navigation_url_loader_delegate.cc
+++ b/content/test/test_navigation_url_loader_delegate.cc
@@ -65,8 +65,8 @@ void TestNavigationURLLoaderDelegate::OnResponseStarted(
bool is_stream) {
response_ = response;
body_ = std::move(body);
- ASSERT_TRUE(response_started_);
- response_started_->Quit();
+ if (response_started_)
+ response_started_->Quit();
}
void TestNavigationURLLoaderDelegate::OnRequestFailed(bool in_cache,
« no previous file with comments | « content/browser/loader/navigation_resource_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698