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

Unified Diff: chrome/common/chrome_switches.cc

Issue 856643002: Viewing cached webpages while offline is not available on Chrome OS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « chrome/common/chrome_switches.h ('k') | chrome/renderer/resources/neterror.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 38d22decc15838961c4b8b93cec03d217da30aab..220bf60ecf2d0006e19e03949cd32a54cac33f0b 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";
@@ -1339,6 +1343,13 @@ bool AboutInSettingsEnabled() {
::switches::kDisableAboutInSettings);
}
+// Will return true as a default value if the "disable-new-offline-error-page"
+// command-line switch is not available.
+bool NewOfflineErrorPageEnabled() {
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ ::switches::kDisableNewOfflineErrorPage);
+}
+
bool OutOfProcessPdfEnabled() {
if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableOutOfProcessPdf))
return true;
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/renderer/resources/neterror.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698