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

Unified Diff: content/public/test/content_browser_test.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/content_shell.gypi ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/content_browser_test.cc
diff --git a/content/public/test/content_browser_test.cc b/content/public/test/content_browser_test.cc
index 64208f776ac12d90a5ec0050bb3106136e0555a1..ad300e299eddcb7d9c06152d81e11ede46290e61 100644
--- a/content/public/test/content_browser_test.cc
+++ b/content/public/test/content_browser_test.cc
@@ -66,7 +66,7 @@ void ContentBrowserTest::SetUp() {
// setting a global that may be used after ContentBrowserTest is
// destroyed.
ContentRendererClient* old_client =
- command_line->HasSwitch(switches::kRunLayoutTest)
+ switches::IsRunLayoutTestSwitchPresent()
? SetRendererClientForTesting(new LayoutTestContentRendererClient)
: SetRendererClientForTesting(new ShellContentRendererClient);
// No-one should have set this value before we did.
@@ -106,8 +106,7 @@ void ContentBrowserTest::TearDown() {
}
void ContentBrowserTest::RunTestOnMainThreadLoop() {
- if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kRunLayoutTest)) {
+ if (!switches::IsRunLayoutTestSwitchPresent()) {
CHECK_EQ(Shell::windows().size(), 1u);
shell_ = Shell::windows()[0];
}
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698