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

Unified Diff: content/shell/renderer/layout_test/layout_test_render_thread_observer.cc

Issue 2345233002: Enable runtime features with status=test before WebKit (Closed)
Patch Set: Not crashing windows Created 4 years, 3 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/shell/renderer/layout_test/layout_test_content_renderer_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/layout_test_render_thread_observer.cc
diff --git a/content/shell/renderer/layout_test/layout_test_render_thread_observer.cc b/content/shell/renderer/layout_test/layout_test_render_thread_observer.cc
index abcbc95618e53a3cf72f732df0d320cf2a69ba03..74195d014b94d864b88c55876c1e6a5214bf1851 100644
--- a/content/shell/renderer/layout_test/layout_test_render_thread_observer.cc
+++ b/content/shell/renderer/layout_test/layout_test_render_thread_observer.cc
@@ -4,7 +4,6 @@
#include "content/shell/renderer/layout_test/layout_test_render_thread_observer.h"
-#include "base/command_line.h"
#include "components/test_runner/test_interfaces.h"
#include "components/test_runner/web_test_interfaces.h"
#include "components/test_runner/web_test_runner.h"
@@ -14,12 +13,6 @@
#include "content/shell/common/layout_test/layout_test_messages.h"
#include "content/shell/common/layout_test/layout_test_switches.h"
#include "content/shell/common/shell_messages.h"
-#include "third_party/WebKit/public/web/WebKit.h"
-#include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
-#include "v8/include/v8.h"
-
-using blink::WebFrame;
-using blink::WebRuntimeFeatures;
namespace content {
@@ -39,25 +32,8 @@ LayoutTestRenderThreadObserver::LayoutTestRenderThreadObserver() {
RenderThread::Get()->AddObserver(this);
EnableRendererLayoutTestMode();
- // We always expose GC to layout tests.
- std::string flags("--expose-gc");
- v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
-
- if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kStableReleaseMode)) {
- WebRuntimeFeatures::enableTestOnlyFeatures(true);
- }
-
test_interfaces_.reset(new test_runner::WebTestInterfaces);
test_interfaces_->ResetAll();
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableFontAntialiasing)) {
- blink::setFontAntialiasingEnabledForTest(true);
- }
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAlwaysUseComplexText)) {
- blink::setAlwaysUseComplexTextForTest(true);
- }
}
LayoutTestRenderThreadObserver::~LayoutTestRenderThreadObserver() {
« no previous file with comments | « content/shell/renderer/layout_test/layout_test_content_renderer_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698