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

Unified Diff: content/shell/app/shell_main_delegate_mac.mm

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
Index: content/shell/app/shell_main_delegate_mac.mm
diff --git a/content/shell/app/shell_main_delegate_mac.mm b/content/shell/app/shell_main_delegate_mac.mm
index bba20a1c2c5228fc911756f17b30da3f7a86af1d..298475cff4afe8e24cc164920e508fa424dc7703 100644
--- a/content/shell/app/shell_main_delegate_mac.mm
+++ b/content/shell/app/shell_main_delegate_mac.mm
@@ -28,8 +28,7 @@ void EnsureCorrectResolutionSettings() {
[[NSMutableDictionary alloc]
initWithContentsOfFile:base::mac::FilePathToNSString(info_plist)]);
- bool running_layout_tests = base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kRunLayoutTest);
+ bool running_layout_tests = switches::IsRunLayoutTestSwitchPresent();
bool not_high_resolution_capable =
[info_dict objectForKey:kHighResolutionCapable] &&
[[info_dict objectForKey:kHighResolutionCapable] isEqualToNumber:@(NO)];
« no previous file with comments | « content/shell/app/shell_main_delegate.cc ('k') | content/shell/browser/layout_test/blink_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698