diff options
author | stevenjb@google.com <stevenjb@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-11 19:14:27 +0000 |
---|---|---|
committer | stevenjb@google.com <stevenjb@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-11 19:14:27 +0000 |
commit | 66149a5cbd355757e63a82b9d3280cc6e0d36da8 (patch) | |
tree | 50df6fded94acde0224be8d8deb82bb673937ce2 /chrome/browser | |
parent | db92eeb9e9003acddf76ba1237630134be67ae56 (diff) | |
download | chromium_src-66149a5cbd355757e63a82b9d3280cc6e0d36da8.zip chromium_src-66149a5cbd355757e63a82b9d3280cc6e0d36da8.tar.gz chromium_src-66149a5cbd355757e63a82b9d3280cc6e0d36da8.tar.bz2 |
Add --dbus-stub for testing dbus stub implementations on a device.
Change-Id: I4730996e6a860833ce7e66792d62dbd1f6db00ea
BUG=none
TEST=Add --dbus-stub to /sbin/session_manager_startup.sh; dbus stub implementation should be used for non-critical components (e.g. power manager)
Review URL: https://chromiumcodereview.appspot.com/10392029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136629 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/chromeos/login/login_utils.cc | 94 |
1 files changed, 48 insertions, 46 deletions
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc index 17e958b..8fa6b17 100644 --- a/chrome/browser/chromeos/login/login_utils.cc +++ b/chrome/browser/chromeos/login/login_utils.cc @@ -69,6 +69,7 @@ #include "chrome/common/net/gaia/gaia_urls.h" #include "chrome/common/pref_names.h" #include "chrome/common/url_constants.h" +#include "chromeos/chromeos_switches.h" #include "chromeos/dbus/dbus_thread_manager.h" #include "chromeos/dbus/session_manager_client.h" #include "content/public/browser/browser_thread.h" @@ -1041,62 +1042,63 @@ std::string LoginUtilsImpl::GetOffTheRecordCommandLine( const CommandLine& base_command_line, CommandLine* command_line) { static const char* kForwardSwitches[] = { - switches::kCompressSystemFeedback, - switches::kDeviceManagementUrl, - switches::kDefaultDeviceScaleFactor, - switches::kDisableAccelerated2dCanvas, - switches::kDisableAcceleratedPlugins, - switches::kDisableGpuWatchdog, - switches::kDisableLoginAnimations, - switches::kDisableSeccompFilterSandbox, - switches::kDisableSeccompSandbox, - switches::kDisableThreadedAnimation, - switches::kEnableDevicePolicy, - switches::kEnableGView, - switches::kEnableLogging, - switches::kEnablePartialSwap, - switches::kEnableSmoothScrolling, - switches::kEnableThreadedCompositing, - switches::kEnableTouchEvents, - switches::kEnableViewport, - switches::kDisableThreadedCompositing, - switches::kForceCompositingMode, - switches::kGpuStartupDialog, - switches::kLoginProfile, - switches::kScrollPixels, - switches::kNoFirstRun, - switches::kNoSandbox, - switches::kPpapiFlashArgs, - switches::kPpapiFlashInProcess, - switches::kPpapiFlashPath, - switches::kPpapiFlashVersion, - switches::kRendererStartupDialog, - switches::kFlingTapSuppressMaxDown, - switches::kFlingTapSuppressMaxGap, - switches::kTouchDevices, - switches::kTouchOptimizedUI, + ::switches::kCompressSystemFeedback, + ::switches::kDeviceManagementUrl, + ::switches::kDefaultDeviceScaleFactor, + ::switches::kDisableAccelerated2dCanvas, + ::switches::kDisableAcceleratedPlugins, + ::switches::kDisableGpuWatchdog, + ::switches::kDisableLoginAnimations, + ::switches::kDisableSeccompFilterSandbox, + ::switches::kDisableSeccompSandbox, + ::switches::kDisableThreadedAnimation, + ::switches::kEnableDevicePolicy, + ::switches::kEnableGView, + ::switches::kEnableLogging, + ::switches::kEnablePartialSwap, + ::switches::kEnableSmoothScrolling, + ::switches::kEnableThreadedCompositing, + ::switches::kEnableTouchEvents, + ::switches::kEnableViewport, + ::switches::kDisableThreadedCompositing, + ::switches::kForceCompositingMode, + ::switches::kGpuStartupDialog, + ::switches::kLoginProfile, + ::switches::kScrollPixels, + ::switches::kNoFirstRun, + ::switches::kNoSandbox, + ::switches::kPpapiFlashArgs, + ::switches::kPpapiFlashInProcess, + ::switches::kPpapiFlashPath, + ::switches::kPpapiFlashVersion, + ::switches::kRendererStartupDialog, + ::switches::kFlingTapSuppressMaxDown, + ::switches::kFlingTapSuppressMaxGap, + ::switches::kTouchDevices, + ::switches::kTouchOptimizedUI, ash::switches::kAuraLegacyPowerButton, ash::switches::kAuraNoShadows, ash::switches::kAuraPanelManager, ash::switches::kAuraWindowAnimationsDisabled, - switches::kUIEnablePartialSwap, - switches::kUseGL, - switches::kUserDataDir, + ::switches::kUIEnablePartialSwap, + ::switches::kUseGL, + ::switches::kUserDataDir, #if defined(USE_VIRTUAL_KEYBOARD) // The virtual keyboard extension (chrome://keyboard) highly relies on // experimental APIs. - switches::kEnableExperimentalExtensionApis, + ::switches::kEnableExperimentalExtensionApis, #endif + chromeos::switches::kDbusStub, }; command_line->CopySwitchesFrom(base_command_line, kForwardSwitches, arraysize(kForwardSwitches)); - command_line->AppendSwitch(switches::kGuestSession); - command_line->AppendSwitch(switches::kIncognito); - command_line->AppendSwitchASCII(switches::kLoggingLevel, + command_line->AppendSwitch(::switches::kGuestSession); + command_line->AppendSwitch(::switches::kIncognito); + command_line->AppendSwitchASCII(::switches::kLoggingLevel, kGuestModeLoggingLevel); - command_line->AppendSwitchASCII(switches::kLoginUser, kGuestUserName); + command_line->AppendSwitchASCII(::switches::kLoginUser, kGuestUserName); if (start_url.is_valid()) command_line->AppendArg(start_url.spec()); @@ -1104,19 +1106,19 @@ std::string LoginUtilsImpl::GetOffTheRecordCommandLine( // Override the value of the homepage that is set in first run mode. // TODO(altimofeev): extend action of the |kNoFirstRun| to cover this case. command_line->AppendSwitchASCII( - switches::kHomePage, + ::switches::kHomePage, GURL(chrome::kChromeUINewTabURL).spec()); std::string cmd_line_str = command_line->GetCommandLineString(); // Special workaround for the arguments that should be quoted. // Copying switches won't be needed when Guest mode won't need restart // http://crosbug.com/6924 - if (base_command_line.HasSwitch(switches::kRegisterPepperPlugins)) { + if (base_command_line.HasSwitch(::switches::kRegisterPepperPlugins)) { cmd_line_str += base::StringPrintf( kSwitchFormatString, - switches::kRegisterPepperPlugins, + ::switches::kRegisterPepperPlugins, base_command_line.GetSwitchValueNative( - switches::kRegisterPepperPlugins).c_str()); + ::switches::kRegisterPepperPlugins).c_str()); } return cmd_line_str; |