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

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: 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
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..dd51b6dbacf1df6bfc7f953946529ab716915fb8 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
@@ -15,11 +15,9 @@
#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 {
@@ -43,11 +41,6 @@ LayoutTestRenderThreadObserver::LayoutTestRenderThreadObserver() {
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(

Powered by Google App Engine
This is Rietveld 408576698