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

Unified Diff: content/renderer/render_thread_impl.h

Issue 12751007: Don't display navigation error pages during layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 048c9dbd97cdbb6bd1846436774cf534794146af..9eed9b859485fa51ec03df8a36840edc30ec16cf 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -203,6 +203,14 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
short_circuit_size_updates_ = short_circuit;
}
+ // True if we should never display error pages in response to a failed load.
+ bool skip_error_pages() const {
+ return skip_error_pages_;
+ }
+ void set_skip_error_pages(bool skip) {
+ skip_error_pages_ = skip;
+ }
+
IPC::ForwardingMessageFilter* compositor_output_surface_filter() const {
return compositor_output_surface_filter_.get();
}
@@ -419,6 +427,7 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
// The following flags are used to control layout test specific behavior.
bool should_send_focus_ipcs_;
bool short_circuit_size_updates_;
+ bool skip_error_pages_;
// Timer that periodically calls IdleHandler.
base::RepeatingTimer<RenderThreadImpl> idle_timer_;
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698