Chromium Code Reviews| 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 47dc9a23962c4e42ceaede2f50cd7418f4283fe0..0bc1ceb31c46c5a8bc6cfa7f0cd1684ed024c000 100644 |
| --- a/content/browser/frame_host/navigation_handle_impl.cc |
| +++ b/content/browser/frame_host/navigation_handle_impl.cc |
| @@ -552,15 +552,16 @@ void NavigationHandleImpl::RegisterNavigationThrottles() { |
| // RegisterThrottleForTesting. |
| ScopedVector<NavigationThrottle> throttles_to_register = |
| GetContentClient()->browser()->CreateThrottlesForNavigation(this); |
| + std::unique_ptr<NavigationThrottle> devtools_throttle = |
| + RenderFrameDevToolsAgentHost::CreateThrottleForNavigation(this); |
|
nasko
2016/08/01 15:29:23
This throttle was added at the end of the list int
Charlie Harrison
2016/08/01 17:42:19
It is still at the end of the "real" throttles. Th
nasko
2016/08/01 23:38:11
If it has no effect, then what necessitated the ch
Charlie Harrison
2016/08/02 13:09:14
The code moves the test navigation throttles to th
|
| + if (devtools_throttle) |
| + throttles_to_register.push_back(devtools_throttle.release()); |
| + |
| if (throttles_to_register.size() > 0) { |
| - throttles_.insert(throttles_.end(), throttles_to_register.begin(), |
| + throttles_.insert(throttles_.begin(), throttles_to_register.begin(), |
| throttles_to_register.end()); |
| throttles_to_register.weak_clear(); |
| } |
| - std::unique_ptr<NavigationThrottle> devtools_throttle = |
| - RenderFrameDevToolsAgentHost::CreateThrottleForNavigation(this); |
| - if (devtools_throttle) |
| - throttles_.push_back(devtools_throttle.release()); |
| } |
| } // namespace content |