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

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

Issue 2698393002: Allow asynchronous deferral in NavigationSimulator (Closed)
Patch Set: engedy/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
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.h ('k') | content/public/test/navigation_simulator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 68d8d0557c144eea693bdb562659ba38f5cbf53a..8a45b4791c7b72d7167fdccbecb6714a07f4c944 100644
--- a/content/browser/frame_host/navigation_handle_impl.cc
+++ b/content/browser/frame_host/navigation_handle_impl.cc
@@ -880,6 +880,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);
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.h ('k') | content/public/test/navigation_simulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698