| Index: content/test/layouttest_support.cc
|
| diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
|
| index 784fb2c3382f8d87c7f9969c3c698c2b65a04b01..8f7c7722c13a72e0ecf3164e76fbbf1d879b5a29 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/public/common/page_state.h"
|
| #include "content/public/common/screen_info.h"
|
| @@ -604,4 +605,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
|
|
|