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

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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Addressed comments + changes to NavigationHandleImpl following 2364943002 Created 4 years, 3 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 beb742447a27e46ce7ed905f6cd4b0850d35bfc4..9bdce7104f41b81ee87345a12857f4fbe50c447e 100644
--- a/content/browser/frame_host/navigation_handle_impl.cc
+++ b/content/browser/frame_host/navigation_handle_impl.cc
@@ -17,6 +17,7 @@
#include "content/common/frame_messages.h"
#include "content/common/resource_request_body_impl.h"
#include "content/public/browser/content_browser_client.h"
+#include "content/public/browser/navigation_ui_data.h"
#include "content/public/common/browser_side_navigation_policy.h"
#include "content/public/common/content_client.h"
#include "content/public/common/url_constants.h"
@@ -383,6 +384,10 @@ void NavigationHandleImpl::WillStartRequest(
RegisterNavigationThrottles();
+ if (IsBrowserSideNavigationEnabled()) {
nasko 2016/09/28 17:28:31 nit: No need for {}.
clamy 2016/09/29 15:56:21 Done.
+ navigation_ui_data_ = GetDelegate()->GetNavigationUIData(this);
+ }
+
// Notify each throttle of the request.
NavigationThrottle::ThrottleCheckResult result = CheckWillStartRequest();

Powered by Google App Engine
This is Rietveld 408576698