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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 1492043002: Introduced switches for Master/Slave bootstrapping process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove the unused shark requisition. Created 5 years 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
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 "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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // files). 187 // files).
188 const char kGuestWallpaperLarge[] = "guest-wallpaper-large"; 188 const char kGuestWallpaperLarge[] = "guest-wallpaper-large";
189 const char kGuestWallpaperSmall[] = "guest-wallpaper-small"; 189 const char kGuestWallpaperSmall[] = "guest-wallpaper-small";
190 190
191 // If true, the Chromebook has a keyboard with a diamond key. 191 // If true, the Chromebook has a keyboard with a diamond key.
192 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key"; 192 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key";
193 193
194 // Defines user homedir. This defaults to primary user homedir. 194 // Defines user homedir. This defaults to primary user homedir.
195 const char kHomedir[] = "homedir"; 195 const char kHomedir[] = "homedir";
196 196
197 // With this switch, start remora OOBE with the pairing screen.
198 const char kHostPairingOobe[] = "host-pairing-oobe";
199
200 // 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
201 // profile. 198 // profile.
202 // TODO(nkostlyev): http://crbug.com/364604 - Get rid of this switch after we 199 // TODO(nkostlyev): http://crbug.com/364604 - Get rid of this switch after we
203 // turn on multi-profile feature on ChromeOS. 200 // turn on multi-profile feature on ChromeOS.
204 const char kIgnoreUserProfileMappingForTests[] = 201 const char kIgnoreUserProfileMappingForTests[] =
205 "ignore-user-profile-mapping-for-tests"; 202 "ignore-user-profile-mapping-for-tests";
206 203
207 // Enables Chrome-as-a-login-manager behavior. 204 // Enables Chrome-as-a-login-manager behavior.
208 const char kLoginManager[] = "login-manager"; 205 const char kLoginManager[] = "login-manager";
209 206
(...skipping 26 matching lines...) Expand all
236 // Disable GAIA services such as enrollment and OAuth session restore. Used by 233 // Disable GAIA services such as enrollment and OAuth session restore. Used by
237 // 'fake' telemetry login. 234 // 'fake' telemetry login.
238 const char kDisableGaiaServices[] = "disable-gaia-services"; 235 const char kDisableGaiaServices[] = "disable-gaia-services";
239 236
240 // Interval at which we check for total time on OOBE. 237 // Interval at which we check for total time on OOBE.
241 const char kOobeTimerInterval[] = "oobe-timer-interval"; 238 const char kOobeTimerInterval[] = "oobe-timer-interval";
242 239
243 // Indicates that a guest session has been started before OOBE completion. 240 // Indicates that a guest session has been started before OOBE completion.
244 const char kOobeGuestSession[] = "oobe-guest-session"; 241 const char kOobeGuestSession[] = "oobe-guest-session";
245 242
243 // Indicates that if we should start remora/shark OOBE.
244 const char kOobeBootstrappingRemora[] = "oobe-bootstrapping-remora";
245 const char kOobeBootstrappingShark[] = "oobe-bootstrapping-shark";
246
246 // Specifies power stub behavior: 247 // Specifies power stub behavior:
247 // 'cycle=2' - Cycles power states every 2 seconds. 248 // 'cycle=2' - Cycles power states every 2 seconds.
248 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details. 249 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details.
249 const char kPowerStub[] = "power-stub"; 250 const char kPowerStub[] = "power-stub";
250 251
251 // Overrides network stub behavior. By default, ethernet, wifi and vpn are 252 // Overrides network stub behavior. By default, ethernet, wifi and vpn are
252 // enabled, and transitions occur instantaneously. Multiple options can be 253 // enabled, and transitions occur instantaneously. Multiple options can be
253 // comma separated (no spaces). Note: all options are in the format 'foo=x'. 254 // 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. 255 // Values are case sensitive and based on Shill names in service_constants.h.
255 // See FakeShillManagerClient::SetInitialNetworkState for implementation. 256 // See FakeShillManagerClient::SetInitialNetworkState for implementation.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 if (option == kAggressiveTabDiscardThreshold) 365 if (option == kAggressiveTabDiscardThreshold)
365 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE_TAB_DISCARD; 366 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE_TAB_DISCARD;
366 if (option == kAggressiveThreshold) 367 if (option == kAggressiveThreshold)
367 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE; 368 return MemoryPressureMonitor::THRESHOLD_AGGRESSIVE;
368 369
369 return MemoryPressureMonitor::THRESHOLD_DEFAULT; 370 return MemoryPressureMonitor::THRESHOLD_DEFAULT;
370 } 371 }
371 372
372 } // namespace switches 373 } // namespace switches
373 } // namespace chromeos 374 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698