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

Unified Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 2698393002: Allow asynchronous deferral in NavigationSimulator (Closed)
Patch Set: clamy review Created 3 years, 9 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
Index: content/browser/frame_host/navigation_handle_impl.cc
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc
index 2e525bbe4956a473d0c41d0d2051e1d5801bdef4..ade978785d2142c4dafcd6b49164b00dccb26fa4 100644
--- a/content/browser/frame_host/navigation_handle_impl.cc
+++ b/content/browser/frame_host/navigation_handle_impl.cc
@@ -872,6 +872,11 @@ void NavigationHandleImpl::RunCompleteCallback(
ThrottleChecksFinishedCallback callback = complete_callback_;
complete_callback_.Reset();
+ if (!complete_callback_for_testing_.is_null()) {
+ complete_callback_for_testing_.Run(result);
+ complete_callback_for_testing_.Reset();
+ }
+
if (!callback.is_null())
callback.Run(result);

Powered by Google App Engine
This is Rietveld 408576698