| OLD | NEW |
| 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 "chromeos/chromeos_switches.h" | 5 #include "chromeos/chromeos_switches.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 | 9 |
| 10 // TODO(rsorokin): alphabetize all of these switches so they | 10 // TODO(rsorokin): alphabetize all of these switches so they |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 const char kDisableCaptivePortalBypassProxy[] = | 317 const char kDisableCaptivePortalBypassProxy[] = |
| 318 "disable-captive-portal-bypass-proxy"; | 318 "disable-captive-portal-bypass-proxy"; |
| 319 | 319 |
| 320 // Disable automatic timezone update. | 320 // Disable automatic timezone update. |
| 321 const char kDisableTimeZoneTrackingOption[] = | 321 const char kDisableTimeZoneTrackingOption[] = |
| 322 "disable-timezone-tracking-option"; | 322 "disable-timezone-tracking-option"; |
| 323 | 323 |
| 324 // Disable new GAIA sign-in flow. | 324 // Disable new GAIA sign-in flow. |
| 325 const char kDisableWebviewSigninFlow[] = "disable-webview-signin-flow"; | 325 const char kDisableWebviewSigninFlow[] = "disable-webview-signin-flow"; |
| 326 | 326 |
| 327 // Enable Chrome OS firewall hole-punching for Chrome Apps. | |
| 328 const char kEnableFirewallHolePunching[] = "enable-firewall-hole-punching"; | |
| 329 | |
| 330 // Enables searching for an app that supports a plugged in USB printer. When a | 327 // Enables searching for an app that supports a plugged in USB printer. When a |
| 331 // user plugs in USB printer, they are shown a notification offering to search | 328 // user plugs in USB printer, they are shown a notification offering to search |
| 332 // Chroem Web Store for an app that has printerProvider permission and can | 329 // Chroem Web Store for an app that has printerProvider permission and can |
| 333 // handle the plugged in printer. | 330 // handle the plugged in printer. |
| 334 const char kEnablePrinterAppSearch[] = "enable-printer-app-search"; | 331 const char kEnablePrinterAppSearch[] = "enable-printer-app-search"; |
| 335 | 332 |
| 336 // Switches and optional value for Data Saver prompt on cellular networks. | 333 // Switches and optional value for Data Saver prompt on cellular networks. |
| 337 const char kDisableDataSaverPrompt[] = "disable-datasaver-prompt"; | 334 const char kDisableDataSaverPrompt[] = "disable-datasaver-prompt"; |
| 338 const char kEnableDataSaverPrompt[] = "enable-datasaver-prompt"; | 335 const char kEnableDataSaverPrompt[] = "enable-datasaver-prompt"; |
| 339 const char kDataSaverPromptDemoMode[] = "demo"; | 336 const char kDataSaverPromptDemoMode[] = "demo"; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 return base::MemoryPressureMonitorChromeOS:: | 379 return base::MemoryPressureMonitorChromeOS:: |
| 383 THRESHOLD_AGGRESSIVE_TAB_DISCARD; | 380 THRESHOLD_AGGRESSIVE_TAB_DISCARD; |
| 384 if (option == kAggressiveThreshold) | 381 if (option == kAggressiveThreshold) |
| 385 return base::MemoryPressureMonitorChromeOS::THRESHOLD_AGGRESSIVE; | 382 return base::MemoryPressureMonitorChromeOS::THRESHOLD_AGGRESSIVE; |
| 386 | 383 |
| 387 return base::MemoryPressureMonitorChromeOS::THRESHOLD_DEFAULT; | 384 return base::MemoryPressureMonitorChromeOS::THRESHOLD_DEFAULT; |
| 388 } | 385 } |
| 389 | 386 |
| 390 } // namespace switches | 387 } // namespace switches |
| 391 } // namespace chromeos | 388 } // namespace chromeos |
| OLD | NEW |