| Index: content/test/layouttest_support.cc
|
| diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
|
| index 117f9bd066ab3b8484fedb3ca73e727e92d9d6b3..85e3439cc6c33a6c3d33c9ddd8235b1cd342c331 100644
|
| --- a/content/test/layouttest_support.cc
|
| +++ b/content/test/layouttest_support.cc
|
| @@ -23,6 +23,7 @@
|
| #include "content/browser/bluetooth/bluetooth_device_chooser_controller.h"
|
| #include "content/browser/renderer_host/render_process_host_impl.h"
|
| #include "content/browser/renderer_host/render_widget_host_impl.h"
|
| +#include "content/child/request_extra_data.h"
|
| #include "content/common/renderer.mojom.h"
|
| #include "content/common/site_isolation_policy.h"
|
| #include "content/public/common/page_state.h"
|
| @@ -608,4 +609,10 @@ void ForceTextInputStateUpdateForRenderFrame(RenderFrame* frame) {
|
| }
|
| }
|
|
|
| +bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request) {
|
| + RequestExtraData* extra_data = static_cast<RequestExtraData*>(
|
| + request.getExtraData());
|
| + return extra_data && extra_data->navigation_initiated_by_renderer();
|
| +}
|
| +
|
| } // namespace content
|
|
|