| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // Disable GAIA services such as enrollment and OAuth session restore. Used by | 236 // Disable GAIA services such as enrollment and OAuth session restore. Used by |
| 237 // 'fake' telemetry login. | 237 // 'fake' telemetry login. |
| 238 const char kDisableGaiaServices[] = "disable-gaia-services"; | 238 const char kDisableGaiaServices[] = "disable-gaia-services"; |
| 239 | 239 |
| 240 // Interval at which we check for total time on OOBE. | 240 // Interval at which we check for total time on OOBE. |
| 241 const char kOobeTimerInterval[] = "oobe-timer-interval"; | 241 const char kOobeTimerInterval[] = "oobe-timer-interval"; |
| 242 | 242 |
| 243 // Indicates that a guest session has been started before OOBE completion. | 243 // Indicates that a guest session has been started before OOBE completion. |
| 244 const char kOobeGuestSession[] = "oobe-guest-session"; | 244 const char kOobeGuestSession[] = "oobe-guest-session"; |
| 245 | 245 |
| 246 // Indicates that if we should start bootstrapping Master/Slave OOBE. |
| 247 const char kOobeBootstrappingMaster[] = "oobe-bootstrapping-master"; |
| 248 const char kOobeBootstrappingSlave[] = "oobe-bootstrapping-slave"; |
| 249 |
| 246 // Specifies power stub behavior: | 250 // Specifies power stub behavior: |
| 247 // 'cycle=2' - Cycles power states every 2 seconds. | 251 // 'cycle=2' - Cycles power states every 2 seconds. |
| 248 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details. | 252 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details. |
| 249 const char kPowerStub[] = "power-stub"; | 253 const char kPowerStub[] = "power-stub"; |
| 250 | 254 |
| 251 // Overrides network stub behavior. By default, ethernet, wifi and vpn are | 255 // Overrides network stub behavior. By default, ethernet, wifi and vpn are |
| 252 // enabled, and transitions occur instantaneously. Multiple options can be | 256 // enabled, and transitions occur instantaneously. Multiple options can be |
| 253 // comma separated (no spaces). Note: all options are in the format 'foo=x'. | 257 // comma separated (no spaces). Note: all options are in the format 'foo=x'. |
| 254 // Values are case sensitive and based on Shill names in service_constants.h. | 258 // Values are case sensitive and based on Shill names in service_constants.h. |
| 255 // See FakeShillManagerClient::SetInitialNetworkState for implementation. | 259 // See FakeShillManagerClient::SetInitialNetworkState for implementation. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 if (option == kAggressiveTabDiscardThreshold) | 368 if (option == kAggressiveTabDiscardThreshold) |
| 365 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE_TAB_DISCARD; | 369 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE_TAB_DISCARD; |
| 366 if (option == kAggressiveThreshold) | 370 if (option == kAggressiveThreshold) |
| 367 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE; | 371 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE; |
| 368 | 372 |
| 369 return MemoryPressureMonitor::THRESHOLD_DEFAULT; | 373 return MemoryPressureMonitor::THRESHOLD_DEFAULT; |
| 370 } | 374 } |
| 371 | 375 |
| 372 } // namespace switches | 376 } // namespace switches |
| 373 } // namespace chromeos | 377 } // namespace chromeos |
| OLD | NEW |