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

Unified Diff: content/shell/browser/layout_test/layout_test_content_browser_client.cc

Issue 1763113002: Move layout-test-specific switches from shell_switches to layout_test_switches.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-line-box-and-debug-from-flags-struct
Patch Set: Fix accidental condition reversal in Shell::ToggleFullscreenModeForTab. Created 4 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/shell/browser/layout_test/layout_test_browser_main.cc ('k') | content/shell/browser/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/layout_test/layout_test_content_browser_client.cc
diff --git a/content/shell/browser/layout_test/layout_test_content_browser_client.cc b/content/shell/browser/layout_test/layout_test_content_browser_client.cc
index 227478d11c65cb4fbcc2f237f5edf8536bea13d1..8626064eae30de429fd894f870fd16076de01457 100644
--- a/content/shell/browser/layout_test/layout_test_content_browser_client.cc
+++ b/content/shell/browser/layout_test/layout_test_content_browser_client.cc
@@ -18,8 +18,8 @@
#include "content/shell/browser/layout_test/layout_test_notification_manager.h"
#include "content/shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h"
#include "content/shell/browser/shell_browser_context.h"
+#include "content/shell/common/layout_test/layout_test_switches.h"
#include "content/shell/common/shell_messages.h"
-#include "content/shell/common/shell_switches.h"
#include "content/shell/renderer/layout_test/blink_test_helpers.h"
namespace content {
@@ -89,6 +89,29 @@ void LayoutTestContentBrowserClient::AppendExtraCommandLineSwitches(
command_line->AppendSwitch(switches::kRunLayoutTest);
ShellContentBrowserClient::AppendExtraCommandLineSwitches(command_line,
child_process_id);
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kAlwaysUseComplexText)) {
+ command_line->AppendSwitch(switches::kAlwaysUseComplexText);
+ }
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableFontAntialiasing)) {
+ command_line->AppendSwitch(switches::kEnableFontAntialiasing);
+ }
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kExposeInternalsForTesting)) {
+ command_line->AppendSwitch(switches::kExposeInternalsForTesting);
+ }
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kStableReleaseMode)) {
+ command_line->AppendSwitch(switches::kStableReleaseMode);
+ }
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableLeakDetection)) {
+ command_line->AppendSwitchASCII(
+ switches::kEnableLeakDetection,
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ switches::kEnableLeakDetection));
+ }
}
BrowserMainParts* LayoutTestContentBrowserClient::CreateBrowserMainParts(
« no previous file with comments | « content/shell/browser/layout_test/layout_test_browser_main.cc ('k') | content/shell/browser/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698