Chromium Code Reviews| Index: chrome/common/chrome_switches.cc |
| diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc |
| index 38d22decc15838961c4b8b93cec03d217da30aab..83ea305a3b981b83c72e6eed2d7962b9e066af3c 100644 |
| --- a/chrome/common/chrome_switches.cc |
| +++ b/chrome/common/chrome_switches.cc |
| @@ -259,6 +259,10 @@ const char kDisableIPv6[] = "disable-ipv6"; |
| const char kDisableMinimizeOnSecondLauncherItemClick[] = |
| "disable-minimize-on-second-launcher-item-click"; |
| +// Disables the new offline error page generated by NetErrorHelper for ChromeOS |
| +// and instead uses the old error page generated by OfflineResourceThrottle. |
| +const char kDisableNewOfflineErrorPage[] = "disable-new-offline-error-page"; |
| + |
| // Disables the menu on the NTP for accessing sessions from other devices. |
| const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; |
| @@ -1372,6 +1376,16 @@ bool SettingsWindowEnabled() { |
| #endif |
| } |
| +// Will return true as a default value if the "disable-new-offline-error-page" |
| +// command-line switch is not available. |
|
Randy Smith (Not in Mondays)
2015/01/27 19:05:29
I'm confused by this. Maybe I just haven't been f
oshima
2015/01/27 22:41:31
Finch is for A/B testing, which is used to make de
Randy Smith (Not in Mondays)
2015/01/27 23:52:59
That's not the only thing finch is used for; it's
|
| +bool NewOfflineErrorPageEnabled() { |
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| + ::switches::kDisableNewOfflineErrorPage)) |
|
oshima
2015/01/27 22:41:31
You can just return
return !.. HasSwitch()
|
| + return false; |
| + |
| + return true; |
| +} |
| + |
| #if defined(OS_CHROMEOS) |
| bool PowerOverlayEnabled() { |
| return base::CommandLine::ForCurrentProcess()->HasSwitch( |