| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 // Indicates that the browser is in "browse without sign-in" (Guest session) | 179 // Indicates that the browser is in "browse without sign-in" (Guest session) |
| 180 // mode. Should completely disable extensions, sync and bookmarks. | 180 // mode. Should completely disable extensions, sync and bookmarks. |
| 181 const char kGuestSession[] = "bwsi"; | 181 const char kGuestSession[] = "bwsi"; |
| 182 | 182 |
| 183 // Wallpaper to use in guest mode (as paths to trusted, non-user-writable JPEG | 183 // Wallpaper to use in guest mode (as paths to trusted, non-user-writable JPEG |
| 184 // files). | 184 // files). |
| 185 const char kGuestWallpaperLarge[] = "guest-wallpaper-large"; | 185 const char kGuestWallpaperLarge[] = "guest-wallpaper-large"; |
| 186 const char kGuestWallpaperSmall[] = "guest-wallpaper-small"; | 186 const char kGuestWallpaperSmall[] = "guest-wallpaper-small"; |
| 187 | 187 |
| 188 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for | |
| 189 // Chromeboxes. | |
| 190 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard"; | |
| 191 | |
| 192 // If true, the Chromebook has a keyboard with a diamond key. | 188 // If true, the Chromebook has a keyboard with a diamond key. |
| 193 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key"; | 189 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key"; |
| 194 | 190 |
| 195 // Defines user homedir. This defaults to primary user homedir. | 191 // Defines user homedir. This defaults to primary user homedir. |
| 196 const char kHomedir[] = "homedir"; | 192 const char kHomedir[] = "homedir"; |
| 197 | 193 |
| 198 // With this switch, start remora OOBE with the pairing screen. | 194 // With this switch, start remora OOBE with the pairing screen. |
| 199 const char kHostPairingOobe[] = "host-pairing-oobe"; | 195 const char kHostPairingOobe[] = "host-pairing-oobe"; |
| 200 | 196 |
| 201 // If true, profile selection in UserManager will always return active user's | 197 // If true, profile selection in UserManager will always return active user's |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 if (option == kAggressiveTabDiscardThreshold) | 353 if (option == kAggressiveTabDiscardThreshold) |
| 358 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE_TAB_DISCARD; | 354 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE_TAB_DISCARD; |
| 359 if (option == kAggressiveThreshold) | 355 if (option == kAggressiveThreshold) |
| 360 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE; | 356 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE; |
| 361 | 357 |
| 362 return MemoryPressureMonitor::THRESHOLD_DEFAULT; | 358 return MemoryPressureMonitor::THRESHOLD_DEFAULT; |
| 363 } | 359 } |
| 364 | 360 |
| 365 } // namespace switches | 361 } // namespace switches |
| 366 } // namespace chromeos | 362 } // namespace chromeos |
| OLD | NEW |