Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: content/test/layouttest_support.cc

Issue 2652123002: PlzNavigate: Attempt to fix blink layout tests which fail due to duplicate output from WebFrameClie… (Closed)
Patch Set: Fix redness Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698