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

Side by Side 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, 10 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 unified diff | Download patch
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/renderer/resources/neterror.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file 252 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file
253 // bugs if something isn't working properly in the presence of IPv6. This flag 253 // bugs if something isn't working properly in the presence of IPv6. This flag
254 // can be overidden by the "enable-ipv6" flag. 254 // can be overidden by the "enable-ipv6" flag.
255 const char kDisableIPv6[] = "disable-ipv6"; 255 const char kDisableIPv6[] = "disable-ipv6";
256 256
257 // Disable the behavior that the second click on a launcher item (the click when 257 // Disable the behavior that the second click on a launcher item (the click when
258 // the item is already active) minimizes the item. 258 // the item is already active) minimizes the item.
259 const char kDisableMinimizeOnSecondLauncherItemClick[] = 259 const char kDisableMinimizeOnSecondLauncherItemClick[] =
260 "disable-minimize-on-second-launcher-item-click"; 260 "disable-minimize-on-second-launcher-item-click";
261 261
262 // Disables the new offline error page generated by NetErrorHelper for ChromeOS
263 // and instead uses the old error page generated by OfflineResourceThrottle.
264 const char kDisableNewOfflineErrorPage[] = "disable-new-offline-error-page";
265
262 // Disables the menu on the NTP for accessing sessions from other devices. 266 // Disables the menu on the NTP for accessing sessions from other devices.
263 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; 267 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu";
264 268
265 // Disable auto-reload of error pages if offline. 269 // Disable auto-reload of error pages if offline.
266 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; 270 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload";
267 271
268 // Disable only auto-reloading error pages when the tab is visible. 272 // Disable only auto-reloading error pages when the tab is visible.
269 const char kDisableOfflineAutoReloadVisibleOnly[] = 273 const char kDisableOfflineAutoReloadVisibleOnly[] =
270 "disable-offline-auto-reload-visible-only"; 274 "disable-offline-auto-reload-visible-only";
271 275
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 // Enables overriding the path of file manager extension. 1336 // Enables overriding the path of file manager extension.
1333 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; 1337 const char kFileManagerExtensionPath[] = "filemgr-ext-path";
1334 #endif 1338 #endif
1335 1339
1336 bool AboutInSettingsEnabled() { 1340 bool AboutInSettingsEnabled() {
1337 return SettingsWindowEnabled() && 1341 return SettingsWindowEnabled() &&
1338 !base::CommandLine::ForCurrentProcess()->HasSwitch( 1342 !base::CommandLine::ForCurrentProcess()->HasSwitch(
1339 ::switches::kDisableAboutInSettings); 1343 ::switches::kDisableAboutInSettings);
1340 } 1344 }
1341 1345
1346 // Will return true as a default value if the "disable-new-offline-error-page"
1347 // command-line switch is not available.
1348 bool NewOfflineErrorPageEnabled() {
1349 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1350 ::switches::kDisableNewOfflineErrorPage);
1351 }
1352
1342 bool OutOfProcessPdfEnabled() { 1353 bool OutOfProcessPdfEnabled() {
1343 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableOutOfProcessPdf)) 1354 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableOutOfProcessPdf))
1344 return true; 1355 return true;
1345 1356
1346 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 1357 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
1347 kDisableOutOfProcessPdf)) 1358 kDisableOutOfProcessPdf))
1348 return false; 1359 return false;
1349 1360
1350 // Default. 1361 // Default.
1351 return true; 1362 return true;
(...skipping 29 matching lines...) Expand all
1381 1392
1382 // ----------------------------------------------------------------------------- 1393 // -----------------------------------------------------------------------------
1383 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1394 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1384 // 1395 //
1385 // You were going to just dump your switches here, weren't you? Instead, please 1396 // You were going to just dump your switches here, weren't you? Instead, please
1386 // put them in alphabetical order above, or in order inside the appropriate 1397 // put them in alphabetical order above, or in order inside the appropriate
1387 // ifdef at the bottom. The order should match the header. 1398 // ifdef at the bottom. The order should match the header.
1388 // ----------------------------------------------------------------------------- 1399 // -----------------------------------------------------------------------------
1389 1400
1390 } // namespace switches 1401 } // namespace switches
OLDNEW
« 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