| Index: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
|
| diff --git a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
|
| index 5ddf0e8d3de684418977cc47122d768a4a5f362d..666d9167ec7da9d50a85f1c69f1a630c88ad5efa 100644
|
| --- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
|
| +++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
|
| @@ -341,22 +341,8 @@ void ChromeResourceDispatcherHostDelegate::RequestBeginning(
|
| #if defined(OS_ANDROID)
|
| // TODO(davidben): This is insufficient to integrate with prerender properly.
|
| // https://crbug.com/370595
|
| - if (!is_prerendering) {
|
| - if (resource_type == content::RESOURCE_TYPE_MAIN_FRAME) {
|
| - throttles->push_back(
|
| - InterceptNavigationDelegate::CreateThrottleFor(request));
|
| - } else {
|
| - InterceptNavigationDelegate::UpdateUserGestureCarryoverInfo(request);
|
| - }
|
| - }
|
| -#else
|
| - if (resource_type == content::RESOURCE_TYPE_MAIN_FRAME) {
|
| - // Redirect some navigations to apps that have registered matching URL
|
| - // handlers ('url_handlers' in the manifest).
|
| - content::ResourceThrottle* url_to_app_throttle =
|
| - AppUrlRedirector::MaybeCreateThrottleFor(request, io_data);
|
| - if (url_to_app_throttle)
|
| - throttles->push_back(url_to_app_throttle);
|
| + if (!is_prerendering && resource_type != content::RESOURCE_TYPE_MAIN_FRAME) {
|
| + InterceptNavigationDelegate::UpdateUserGestureCarryoverInfo(request);
|
| }
|
| #endif
|
|
|
|
|