DevTools: support main resource throttling with PlzNavigate

Desktop / Chromium - Andrey Kosyakov [chromium.org] - 7 August 2017 17:30 EDT

When navigating a frame that has DevTools attached, set X-DevTools-Emulate-Network-Conditions-Client-Id in NavigationRequest so that network conditions are applied when browser-initiated navigation if performed. Also, merge this logic with applying User-Agent override for brevity.

Bug: 749884 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_site_isolation Change-Id: I26332c621b00e1c2d9a1872b95cb55d63f8d82d1 Reviewed-on: https://chromium-review.googlesource.com/600816

25dc515 DevTools: support main resource throttling with PlzNavigate
.../devtools/render_frame_devtools_agent_host.cc | 26 ++++++++++++++++------
.../devtools/render_frame_devtools_agent_host.h | 8 +++++--
content/browser/frame_host/navigation_request.cc | 9 ++------
3 files changed, 27 insertions(+), 16 deletions(-)

Upstream: git.chromium.org


  • Share