Commit 1a2966b9 authored by zelidrag@chromium.org's avatar zelidrag@chromium.org

Consolidated OOBE/Login webui switched. Put WebUI OOBE/login in flags.

BUG=chromium-os:18878
TEST=make sure Advanced "Sign in with Google" appears in about:flags.

Review URL: http://codereview.chromium.org/7529037

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95960 0039d316-1c4b-4281-b951-d872f2087c98
parent a9e3ec4a
...@@ -344,6 +344,15 @@ const Experiment kExperiments[] = { ...@@ -344,6 +344,15 @@ const Experiment kExperiments[] = {
kOsAll, kOsAll,
SINGLE_VALUE_TYPE(switches::kEnableShortcutsProvider) SINGLE_VALUE_TYPE(switches::kEnableShortcutsProvider)
}, },
#if defined(OS_CHROMEOS)
{
"webui-login",
IDS_SYNC_SETUP_TITLE,
IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_ADVANCED_BUTTON,
kOsCrOS,
SINGLE_VALUE_TYPE(switches::kWebUILogin)
},
#endif
{ {
"memory-widget", "memory-widget",
IDS_FLAGS_MEMORY_WIDGET_NAME, IDS_FLAGS_MEMORY_WIDGET_NAME,
......
...@@ -144,7 +144,7 @@ void BaseLoginDisplayHost::StartWizard( ...@@ -144,7 +144,7 @@ void BaseLoginDisplayHost::StartWizard(
// is done before new controller creation. // is done before new controller creation.
wizard_controller_.reset(); wizard_controller_.reset();
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAllowWebUIOobe)) { if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kWebUILogin)) {
wizard_controller_.reset(CreateWizardController()); wizard_controller_.reset(CreateWizardController());
} else { } else {
// Force views based implementation. // Force views based implementation.
......
...@@ -52,7 +52,7 @@ LoginPerformer::LoginPerformer(Delegate* delegate) ...@@ -52,7 +52,7 @@ LoginPerformer::LoginPerformer(Delegate* delegate)
auth_mode_(AUTH_MODE_INTERNAL), auth_mode_(AUTH_MODE_INTERNAL),
using_oauth_( using_oauth_(
CommandLine::ForCurrentProcess()->HasSwitch( CommandLine::ForCurrentProcess()->HasSwitch(
switches::kWebUIGaiaLogin) && switches::kWebUILogin) &&
!CommandLine::ForCurrentProcess()->HasSwitch( !CommandLine::ForCurrentProcess()->HasSwitch(
switches::kSkipOAuthLogin)), switches::kSkipOAuthLogin)),
method_factory_(this) { method_factory_(this) {
......
...@@ -60,7 +60,7 @@ ParallelAuthenticator::ParallelAuthenticator(LoginStatusConsumer* consumer) ...@@ -60,7 +60,7 @@ ParallelAuthenticator::ParallelAuthenticator(LoginStatusConsumer* consumer)
checked_for_localaccount_(false), checked_for_localaccount_(false),
using_oauth_( using_oauth_(
CommandLine::ForCurrentProcess()->HasSwitch( CommandLine::ForCurrentProcess()->HasSwitch(
switches::kWebUIGaiaLogin) && switches::kWebUILogin) &&
!CommandLine::ForCurrentProcess()->HasSwitch( !CommandLine::ForCurrentProcess()->HasSwitch(
switches::kSkipOAuthLogin)) { switches::kSkipOAuthLogin)) {
CHECK(chromeos::CrosLibrary::Get()->EnsureLoaded()); CHECK(chromeos::CrosLibrary::Get()->EnsureLoaded());
......
...@@ -62,7 +62,7 @@ SigninScreenHandler::SigninScreenHandler() ...@@ -62,7 +62,7 @@ SigninScreenHandler::SigninScreenHandler()
oobe_ui_(false), oobe_ui_(false),
extension_driven_( extension_driven_(
CommandLine::ForCurrentProcess()->HasSwitch( CommandLine::ForCurrentProcess()->HasSwitch(
switches::kWebUIGaiaLogin)) { switches::kWebUILogin)) {
delegate_->SetWebUIHandler(this); delegate_->SetWebUIHandler(this);
} }
......
...@@ -40,10 +40,6 @@ const char kAllowWebSocketProxy[] = "allow-websocket-proxy"; ...@@ -40,10 +40,6 @@ const char kAllowWebSocketProxy[] = "allow-websocket-proxy";
// Allow compositing on chrome:// pages. // Allow compositing on chrome:// pages.
const char kAllowWebUICompositing[] = "allow-webui-compositing"; const char kAllowWebUICompositing[] = "allow-webui-compositing";
// Allows WebUI based OOBE. Note, WebUI will be used iff kWebUILogin is also
// true.
const char kAllowWebUIOobe[] = "allow-webui-oobe";
// This prevents Chrome from requiring authorization to run certain widely // This prevents Chrome from requiring authorization to run certain widely
// installed but less commonly used plug-ins. // installed but less commonly used plug-ins.
const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins"; const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins";
...@@ -1024,15 +1020,12 @@ const char kVersion[] = "version"; ...@@ -1024,15 +1020,12 @@ const char kVersion[] = "version";
const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver"; const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver";
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
// Enable WebUI based login screens. // Enable WebUI based OOBE and login.
const char kWebUILogin[] = "webui-login"; const char kWebUILogin[] = "webui-login";
// Skips OAuth part of ChromeOS login process. // Skips OAuth part of ChromeOS login process.
const char kSkipOAuthLogin[] = "skip-oauth-login"; const char kSkipOAuthLogin[] = "skip-oauth-login";
// Enable WebUI login screen hosted by GAIA authentication extension.
const char kWebUIGaiaLogin[] = "webui-gaia-login";
// Enables device policy support on ChromeOS. // Enables device policy support on ChromeOS.
const char kEnableDevicePolicy[] = "enable-device-policy"; const char kEnableDevicePolicy[] = "enable-device-policy";
......
...@@ -30,7 +30,6 @@ extern const char kAllowHTTPBackgroundPage[]; ...@@ -30,7 +30,6 @@ extern const char kAllowHTTPBackgroundPage[];
extern const char kAllowScriptingGallery[]; extern const char kAllowScriptingGallery[];
extern const char kAllowWebSocketProxy[]; extern const char kAllowWebSocketProxy[];
extern const char kAllowWebUICompositing[]; extern const char kAllowWebUICompositing[];
extern const char kAllowWebUIOobe[];
extern const char kAlwaysAuthorizePlugins[]; extern const char kAlwaysAuthorizePlugins[];
extern const char kAppId[]; extern const char kAppId[];
extern const char kApp[]; extern const char kApp[];
...@@ -281,7 +280,6 @@ extern const char kWinHttpProxyResolver[]; ...@@ -281,7 +280,6 @@ extern const char kWinHttpProxyResolver[];
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
extern const char kWebUILogin[]; extern const char kWebUILogin[];
extern const char kWebUIGaiaLogin[];
extern const char kSkipOAuthLogin[]; extern const char kSkipOAuthLogin[];
extern const char kEnableDevicePolicy[]; extern const char kEnableDevicePolicy[];
extern const char kEnableGView[]; extern const char kEnableGView[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment