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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2931023002: [TooManyTabs] Add TabNavigationThrottle (Closed)
Patch Set: Created 3 years, 6 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: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 6435b992c26d0a5e156de5c71694b04009df0b4e..f2392eee1545c0437f0f6e381db10e6eb1fa2f2a 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -72,6 +72,7 @@
#include "chrome/browser/renderer_host/chrome_navigation_ui_data.h"
#include "chrome/browser/renderer_host/chrome_render_message_filter.h"
#include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h"
+#include "chrome/browser/resource_coordinator/tab_navigation_throttle.h"
#include "chrome/browser/safe_browsing/certificate_reporting_service.h"
#include "chrome/browser/safe_browsing/certificate_reporting_service_factory.h"
#include "chrome/browser/safe_browsing/mojo_safe_browsing_impl.h"
@@ -3383,6 +3384,12 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation(
&throttles);
}
+ std::unique_ptr<content::NavigationThrottle> tab_navigation_throttle =
+ resource_coordinator::TabNavigationThrottle::MaybeCreateThrottleFor(
+ handle);
+ if (tab_navigation_throttle)
+ throttles.push_back(std::move(tab_navigation_throttle));
+
return throttles;
}

Powered by Google App Engine
This is Rietveld 408576698