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

Side by Side Diff: content/test/layouttest_support.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_render_process_observer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/test/layouttest_support.h" 5 #include "content/public/test/layouttest_support.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "content/common/gpu/image_transport_surface.h" 9 #include "content/common/gpu/image_transport_surface.h"
10 #include "content/renderer/devtools/devtools_client.h" 10 #include "content/renderer/devtools/devtools_client.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 void EnableShortCircuitSizeUpdates() { 85 void EnableShortCircuitSizeUpdates() {
86 RenderThreadImpl::current()->set_short_circuit_size_updates(true); 86 RenderThreadImpl::current()->set_short_circuit_size_updates(true);
87 } 87 }
88 88
89 void ForceResizeRenderView(RenderView* render_view, 89 void ForceResizeRenderView(RenderView* render_view,
90 const WebKit::WebSize& new_size) { 90 const WebKit::WebSize& new_size) {
91 static_cast<RenderViewImpl*>(render_view)->didAutoResize(new_size); 91 static_cast<RenderViewImpl*>(render_view)->didAutoResize(new_size);
92 } 92 }
93 93
94 void DisableNavigationErrorPages() {
95 RenderThreadImpl::current()->set_skip_error_pages(true);
96 }
97
94 } // namespace content 98 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_render_process_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698