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

Unified Diff: content/shell/common/shell_content_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/common/layout_test/layout_test_switches.cc ('k') | content/shell/common/shell_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/common/shell_content_client.cc
diff --git a/content/shell/common/shell_content_client.cc b/content/shell/common/shell_content_client.cc
index d0940b8b92b2fc6836880d883aab8ea97f5ea956..842e0c168502efb12b1ab48c26a1d122bdb0ab81 100644
--- a/content/shell/common/shell_content_client.cc
+++ b/content/shell/common/shell_content_client.cc
@@ -36,8 +36,7 @@ std::string ShellContentClient::GetUserAgent() const {
}
base::string16 ShellContentClient::GetLocalizedString(int message_id) const {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kRunLayoutTest)) {
+ if (switches::IsRunLayoutTestSwitchPresent()) {
switch (message_id) {
case IDS_FORM_OTHER_DATE_LABEL:
return base::ASCIIToUTF16("<<OtherDateLabel>>");
@@ -63,8 +62,7 @@ base::string16 ShellContentClient::GetLocalizedString(int message_id) const {
base::StringPiece ShellContentClient::GetDataResource(
int resource_id,
ui::ScaleFactor scale_factor) const {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kRunLayoutTest)) {
+ if (switches::IsRunLayoutTestSwitchPresent()) {
switch (resource_id) {
case IDR_BROKENIMAGE:
#if defined(OS_MACOSX)
« no previous file with comments | « content/shell/common/layout_test/layout_test_switches.cc ('k') | content/shell/common/shell_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698