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

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

Issue 1125213007: Move command line handling out of test runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 7 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 | « no previous file | content/shell/renderer/test_runner/test_interfaces.cc » ('j') | 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_process_observer.cc
diff --git a/content/shell/renderer/layout_test/layout_test_render_process_observer.cc b/content/shell/renderer/layout_test/layout_test_render_process_observer.cc
index b74c48c3465784804180372131d624917c885e30..731f71b1523ef88da2bdc34aa654875081a8d070 100644
--- a/content/shell/renderer/layout_test/layout_test_render_process_observer.cc
+++ b/content/shell/renderer/layout_test/layout_test_render_process_observer.cc
@@ -13,6 +13,7 @@
#include "content/shell/common/shell_switches.h"
#include "content/shell/renderer/layout_test/blink_test_runner.h"
#include "content/shell/renderer/test_runner/web_test_interfaces.h"
+#include "third_party/WebKit/public/web/WebKit.h"
#include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
#include "third_party/WebKit/public/web/WebView.h"
#include "v8/include/v8.h"
@@ -70,6 +71,11 @@ void LayoutTestRenderProcessObserver::WebKitInitialized() {
test_interfaces_.reset(new WebTestInterfaces);
test_interfaces_->ResetAll();
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableFontAntialiasing)) {
+ blink::setFontAntialiasingEnabledForTest(true);
+ }
+
}
void LayoutTestRenderProcessObserver::OnRenderProcessShutdown() {
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/test_interfaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698