Chromium Code Reviews| 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 9d061cb3fd76543097c1850d84746350aaa5fb9c..1bcd57e9b875218dfa8d9a286ea080c985ea9ebd 100644 |
| --- a/chrome/browser/chrome_content_browser_client.cc |
| +++ b/chrome/browser/chrome_content_browser_client.cc |
| @@ -73,6 +73,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/background_tab_navigation_throttle.h" |
| #include "chrome/browser/safe_browsing/browser_url_loader_throttle.h" |
| #include "chrome/browser/safe_browsing/certificate_reporting_service.h" |
| #include "chrome/browser/safe_browsing/certificate_reporting_service_factory.h" |
| @@ -3243,6 +3244,14 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation( |
| &throttles); |
| } |
| +#if !defined(OS_ANDROID) |
|
Charlie Reis
2017/07/07 22:07:56
Please include a comment for why this isn't enable
Zhen Wang
2017/07/10 17:21:54
Done.
|
| + std::unique_ptr<content::NavigationThrottle> |
| + background_tab_navigation_throttle = resource_coordinator:: |
| + BackgroundTabNavigationThrottle::MaybeCreateThrottleFor(handle); |
| + if (background_tab_navigation_throttle) |
| + throttles.push_back(std::move(background_tab_navigation_throttle)); |
| +#endif |
| + |
| return throttles; |
| } |