Commit 322be03c authored by Danila Kuzmin's avatar Danila Kuzmin Committed by Commit Bot

oobe: Migrate EulaScreen to LoginScreenBehavior

Bug: 1106367
Change-Id: Idcb023a623bd230eeba79618162ee47d6c0c5181
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2303717Reviewed-by: default avatarDenis Kuznetsov [CET] <antrim@chromium.org>
Commit-Queue: Danila Kuzmin <dkuzmin@google.com>
Cr-Commit-Position: refs/heads/master@{#795072}
parent b6f48f5b
...@@ -75,14 +75,13 @@ const test::UIPath kAcceptEulaButton = {"oobe-eula-md", "acceptButton"}; ...@@ -75,14 +75,13 @@ const test::UIPath kAcceptEulaButton = {"oobe-eula-md", "acceptButton"};
const test::UIPath kEulaTPMPassword = {"oobe-eula-md", "eula-password"}; const test::UIPath kEulaTPMPassword = {"oobe-eula-md", "eula-password"};
const test::UIPath kUsageStats = {"oobe-eula-md", "usageStats"}; const test::UIPath kUsageStats = {"oobe-eula-md", "usageStats"};
const test::UIPath kAdditionalTermsLink = {"oobe-eula-md", "additionalTerms"}; const test::UIPath kAdditionalTermsLink = {"oobe-eula-md", "additionalTerms"};
const test::UIPath kAdditionalTermsDialog = {"oobe-eula-md", "additional-tos"}; const test::UIPath kAdditionalTermsDialog = {"oobe-eula-md", "additionalToS"};
const test::UIPath kAdditionalTermsClose = {"oobe-eula-md", const test::UIPath kAdditionalTermsClose = {"oobe-eula-md",
"close-additional-tos"}; "close-additional-tos"};
const test::UIPath kInstallationSettingsLink = {"oobe-eula-md", const test::UIPath kSecuritySettingsLink = {"oobe-eula-md", "securitySettings"};
"installationSettings"}; const test::UIPath kSecuritySettingsDialog = {"oobe-eula-md",
const test::UIPath kInstallationSettingsDialog = {"oobe-eula-md", "securitySettingsDialog"};
"installationSettingsDialog"}; const test::UIPath kLearnMoreLink = {"oobe-eula-md", "learnMore"};
const test::UIPath kLearnMoreLink = {"oobe-eula-md", "learn-more"};
// Helper class to wait until the WebCotnents finishes loading. // Helper class to wait until the WebCotnents finishes loading.
class WebContentsLoadFinishedWaiter : public content::WebContentsObserver { class WebContentsLoadFinishedWaiter : public content::WebContentsObserver {
...@@ -320,8 +319,8 @@ IN_PROC_BROWSER_TEST_F(EulaTest, DisplaysTpmPassword) { ...@@ -320,8 +319,8 @@ IN_PROC_BROWSER_TEST_F(EulaTest, DisplaysTpmPassword) {
base::HistogramTester histogram_tester; base::HistogramTester histogram_tester;
ShowEulaScreen(); ShowEulaScreen();
test::OobeJS().TapLinkOnPath(kInstallationSettingsLink); test::OobeJS().TapLinkOnPath(kSecuritySettingsLink);
test::OobeJS().ExpectVisiblePath(kInstallationSettingsDialog); test::OobeJS().ExpectVisiblePath(kSecuritySettingsDialog);
test::OobeJS() test::OobeJS()
.CreateWaiter( .CreateWaiter(
......
...@@ -149,7 +149,17 @@ void EulaScreen::OnUserAction(const std::string& action_id) { ...@@ -149,7 +149,17 @@ void EulaScreen::OnUserAction(const std::string& action_id) {
return; return;
} }
RecordUserAction(action_id); RecordUserAction(action_id);
if (action_id == kUserActionAcceptButtonClicked) { if (action_id == kUserActionShowStatsUsageLearnMore) {
ShowStatsUsageLearnMore();
} else if (action_id == kUserActionShowAdditionalTos) {
ShowAdditionalTosDialog();
} else if (action_id == kUserActionShowSecuritySettings) {
InitiatePasswordFetch();
} else if (action_id == kUserActionSelectStatsUsage) {
SetUsageStatsEnabled(true);
} else if (action_id == kUserActionUnselectStatsUsage) {
SetUsageStatsEnabled(false);
} else if (action_id == kUserActionAcceptButtonClicked) {
exit_callback_.Run(g_usage_statistics_reporting_enabled exit_callback_.Run(g_usage_statistics_reporting_enabled
? Result::ACCEPTED_WITH_USAGE_STATS_REPORTING ? Result::ACCEPTED_WITH_USAGE_STATS_REPORTING
: Result::ACCEPTED_WITHOUT_USAGE_STATS_REPORTING); : Result::ACCEPTED_WITHOUT_USAGE_STATS_REPORTING);
...@@ -172,4 +182,14 @@ void EulaScreen::OnPasswordFetched(const std::string& tpm_password) { ...@@ -172,4 +182,14 @@ void EulaScreen::OnPasswordFetched(const std::string& tpm_password) {
view_->OnPasswordFetched(tpm_password_); view_->OnPasswordFetched(tpm_password_);
} }
void EulaScreen::ShowStatsUsageLearnMore() {
if (view_)
view_->ShowStatsUsageLearnMore();
}
void EulaScreen::ShowAdditionalTosDialog() {
if (view_)
view_->ShowAdditionalTosDialog();
}
} // namespace chromeos } // namespace chromeos
...@@ -81,6 +81,8 @@ class EulaScreen : public BaseScreen, public TpmPasswordFetcherDelegate { ...@@ -81,6 +81,8 @@ class EulaScreen : public BaseScreen, public TpmPasswordFetcherDelegate {
// TpmPasswordFetcherDelegate implementation: // TpmPasswordFetcherDelegate implementation:
void OnPasswordFetched(const std::string& tpm_password) override; void OnPasswordFetched(const std::string& tpm_password) override;
void ShowStatsUsageLearnMore();
void ShowAdditionalTosDialog();
// URL of the OEM EULA page (on disk). // URL of the OEM EULA page (on disk).
GURL oem_eula_page_; GURL oem_eula_page_;
......
...@@ -36,6 +36,8 @@ class MockEulaView : public EulaView { ...@@ -36,6 +36,8 @@ class MockEulaView : public EulaView {
MOCK_METHOD(void, MockBind, (EulaScreen * screen)); MOCK_METHOD(void, MockBind, (EulaScreen * screen));
MOCK_METHOD(void, MockUnbind, ()); MOCK_METHOD(void, MockUnbind, ());
MOCK_METHOD(void, OnPasswordFetched, (const std::string& tpm_password)); MOCK_METHOD(void, OnPasswordFetched, (const std::string& tpm_password));
MOCK_METHOD(void, ShowStatsUsageLearnMore, ());
MOCK_METHOD(void, ShowAdditionalTosDialog, ());
private: private:
EulaScreen* screen_ = nullptr; EulaScreen* screen_ = nullptr;
......
...@@ -216,6 +216,8 @@ js_library("oobe_enable_kiosk") { ...@@ -216,6 +216,8 @@ js_library("oobe_enable_kiosk") {
js_library("oobe_eula") { js_library("oobe_eula") {
deps = [ deps = [
":web_view_helper",
"components:login_screen_behavior",
"components:oobe_dialog", "components:oobe_dialog",
"components:oobe_dialog_host_behavior", "components:oobe_dialog_host_behavior",
"components:oobe_i18n_behavior", "components:oobe_i18n_behavior",
...@@ -284,3 +286,6 @@ js_library("throbber_notice") { ...@@ -284,3 +286,6 @@ js_library("throbber_notice") {
js_library("update_required_card") { js_library("update_required_card") {
} }
js_library("web_view_helper") {
}
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
// <include src="oobe_screen_demo_setup.js"> // <include src="oobe_screen_demo_setup.js">
// <include src="oobe_screen_demo_preferences.js"> // <include src="oobe_screen_demo_preferences.js">
// <include src="oobe_screen_enable_debugging.js"> // <include src="oobe_screen_enable_debugging.js">
// <include src="oobe_screen_eula.js">
// <include src="multi_tap_detector.js"> // <include src="multi_tap_detector.js">
// <include src="web_view_helper.js"> // <include src="web_view_helper.js">
...@@ -50,7 +49,6 @@ cr.define('cr.ui.Oobe', function() { ...@@ -50,7 +49,6 @@ cr.define('cr.ui.Oobe', function() {
*/ */
initialize() { initialize() {
cr.ui.login.DisplayManager.initialize(); cr.ui.login.DisplayManager.initialize();
login.EulaScreen.register();
login.AutoEnrollmentCheckScreen.register(); login.AutoEnrollmentCheckScreen.register();
login.EnableDebuggingScreen.register(); login.EnableDebuggingScreen.register();
login.AutolaunchScreen.register(); login.AutolaunchScreen.register();
......
...@@ -17,7 +17,7 @@ a { ...@@ -17,7 +17,7 @@ a {
height: 300px; height: 300px;
} }
#installationSettings, #securitySettings,
#logging { #logging {
font-size: 13px; font-size: 13px;
min-height: unset; min-height: unset;
...@@ -28,7 +28,7 @@ a { ...@@ -28,7 +28,7 @@ a {
} }
#additionalTerms, #additionalTerms,
#installationSettings, #securitySettings,
#logging { #logging {
margin-top: 16px; margin-top: 16px;
} }
...@@ -65,6 +65,6 @@ cr-checkbox { ...@@ -65,6 +65,6 @@ cr-checkbox {
user-select: text; user-select: text;
} }
.installation-settings-spinner { .security-settings-spinner {
margin-inline-end: 5px; margin-inline-end: 5px;
} }
...@@ -40,10 +40,10 @@ ...@@ -40,10 +40,10 @@
class="oobe-local-link"> class="oobe-local-link">
[[i18nDynamic(locale, 'oobeEulaAditionalTerms')]] [[i18nDynamic(locale, 'oobeEulaAditionalTerms')]]
</a> </a>
<a id="installationSettings" href="#" <a id="securitySettings" href="#"
class="oobe-local-link" class="oobe-local-link"
on-tap="onInstallationSettingsClicked_"> on-tap="onSecuritySettingsClicked_">
[[i18nDynamic(locale, 'eulaSystemInstallationSettings')]] [[i18nDynamic(locale, 'eulaSystemSecuritySettings')]]
</a> </a>
<div id="logging" class="layout horizontal"> <div id="logging" class="layout horizontal">
<cr-checkbox id="usageStats" class="layout start self-center" <cr-checkbox id="usageStats" class="layout start self-center"
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<span id="usageStatsLabel"> <span id="usageStatsLabel">
[[i18nDynamic(locale, 'checkboxLogging')]] [[i18nDynamic(locale, 'checkboxLogging')]]
</span> </span>
<a id="learn-more" href="#" <a id="learnMore" href="#"
on-tap="onUsageStatsHelpLinkClicked_" on-tap="onUsageStatsHelpLinkClicked_"
class="oobe-local-link"> class="oobe-local-link">
[[i18nDynamic(locale, 'learnMore')]] [[i18nDynamic(locale, 'learnMore')]]
...@@ -75,9 +75,9 @@ ...@@ -75,9 +75,9 @@
</oobe-text-button> </oobe-text-button>
</div> </div>
</oobe-dialog> </oobe-dialog>
<oobe-dialog id="installationSettingsDialog" role="dialog" has-buttons <oobe-dialog id="securitySettingsDialog" role="dialog" has-buttons
title-key="eulaSystemInstallationSettings" hidden title-key="eulaSystemSecuritySettings" hidden
aria-label$="[[i18nDynamic(locale, 'eulaSystemInstallationSettings')]]"> aria-label$="[[i18nDynamic(locale, 'eulaSystemSecuritySettings')]]">
<hd-iron-icon slot="oobe-icon" <hd-iron-icon slot="oobe-icon"
icon1x="oobe-32:googleg" icon2x="oobe-64:googleg"> icon1x="oobe-32:googleg" icon2x="oobe-64:googleg">
</hd-iron-icon> </hd-iron-icon>
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
</div> </div>
<div class="layout horizontal" <div class="layout horizontal"
hidden="[[!isWaitingForPassword_(password)]]"> hidden="[[!isWaitingForPassword_(password)]]">
<div class="installation-settings-spinner throbber"></div> <div class="security-settings-spinner throbber"></div>
<div> <div>
[[i18nDynamic(locale, 'eulaTpmBusy')]] [[i18nDynamic(locale, 'eulaTpmBusy')]]
</div> </div>
...@@ -111,11 +111,11 @@ ...@@ -111,11 +111,11 @@
<div class="flex"></div> <div class="flex"></div>
<oobe-text-button id="settings-close-button" inverse <oobe-text-button id="settings-close-button" inverse
class="focus-on-show" class="focus-on-show"
text-key="eulaSystemInstallationSettingsOkButton" text-key="eulaSystemSecuritySettingsOkButton"
on-tap="onInstallationSettingsCloseClicked_"></oobe-text-button> on-tap="onSecuritySettingsCloseClicked_"></oobe-text-button>
</div> </div>
</oobe-dialog> </oobe-dialog>
<cr-dialog id="additional-tos" ignore-popstate <cr-dialog id="additionalToS" ignore-popstate
on-close="focusAdditionalTermsLink_" on-close="focusAdditionalTermsLink_"
on-cancel="focusAdditionalTermsLink_"> on-cancel="focusAdditionalTermsLink_">
<div slot="title"> <div slot="title">
......
<div class="step hidden" id="eula" role="group"
i18n-values="aria-label:eulaScreenAccessibleTitle" hidden>
<oobe-eula-md id="oobe-eula-md"></oobe-eula-md>
</div>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<include src="../oobe_screen_demo_setup.html"> <include src="../oobe_screen_demo_setup.html">
<oobe-network id="network-selection" class="step hidden" hidden> <oobe-network id="network-selection" class="step hidden" hidden>
</oobe-network> </oobe-network>
<include src="../oobe_screen_eula.html"> <oobe-eula-md id="oobe-eula-md" class="step hidden" hidden></oobe-eula-md>
<oobe-update id="oobe-update" class="step hidden" hidden> <oobe-update id="oobe-update" class="step hidden" hidden>
</oobe-update> </oobe-update>
<include src="../oobe_screen_auto_enrollment_check.html"> <include src="../oobe_screen_auto_enrollment_check.html">
......
...@@ -13,9 +13,10 @@ class WebViewHelper { ...@@ -13,9 +13,10 @@ class WebViewHelper {
* The content is loaded via XHR and is sent to web view via data url so that * The content is loaded via XHR and is sent to web view via data url so that
* it is properly sandboxed. * it is properly sandboxed.
* *
* @param {!WebView} webView web view element to host the content. * @param {!Object} webView is a WebView element to host the content.
* @param {string} url URL to load the content from. * @param {string} url URL to load the content from.
* @param {!ContentType} contentType type of the content to load. * @param {!WebViewHelper.ContentType} contentType type of the content to
* load.
*/ */
static loadUrlContentToWebView(webView, url, contentType) { static loadUrlContentToWebView(webView, url, contentType) {
assert(webView.tagName === 'WEBVIEW'); assert(webView.tagName === 'WEBVIEW');
...@@ -59,7 +60,8 @@ class WebViewHelper { ...@@ -59,7 +60,8 @@ class WebViewHelper {
onError(); onError();
return; return;
} }
setContents(xhr.response); let contents = /** @type {string} */ (xhr.response);
setContents(contents);
}; };
try { try {
......
...@@ -89,8 +89,7 @@ void EulaScreenHandler::DeclareLocalizedValues( ...@@ -89,8 +89,7 @@ void EulaScreenHandler::DeclareLocalizedValues(
builder->Add("back", IDS_EULA_BACK_BUTTON); builder->Add("back", IDS_EULA_BACK_BUTTON);
builder->Add("next", IDS_EULA_NEXT_BUTTON); builder->Add("next", IDS_EULA_NEXT_BUTTON);
builder->Add("acceptAgreement", IDS_EULA_ACCEPT_AND_CONTINUE_BUTTON); builder->Add("acceptAgreement", IDS_EULA_ACCEPT_AND_CONTINUE_BUTTON);
builder->Add("eulaSystemInstallationSettings", builder->Add("eulaSystemSecuritySettings", IDS_EULA_SYSTEM_SECURITY_SETTING);
IDS_EULA_SYSTEM_SECURITY_SETTING);
builder->Add("eulaTpmDesc", IDS_EULA_SECURE_MODULE_DESCRIPTION); builder->Add("eulaTpmDesc", IDS_EULA_SECURE_MODULE_DESCRIPTION);
builder->Add("eulaTpmKeyDesc", IDS_EULA_SECURE_MODULE_KEY_DESCRIPTION); builder->Add("eulaTpmKeyDesc", IDS_EULA_SECURE_MODULE_KEY_DESCRIPTION);
...@@ -100,7 +99,7 @@ void EulaScreenHandler::DeclareLocalizedValues( ...@@ -100,7 +99,7 @@ void EulaScreenHandler::DeclareLocalizedValues(
::login::GetSecureModuleUsed(base::BindOnce( ::login::GetSecureModuleUsed(base::BindOnce(
&EulaScreenHandler::UpdateLocalizedValues, weak_factory_.GetWeakPtr())); &EulaScreenHandler::UpdateLocalizedValues, weak_factory_.GetWeakPtr()));
builder->Add("eulaSystemInstallationSettingsOkButton", IDS_OK); builder->Add("eulaSystemSecuritySettingsOkButton", IDS_OK);
builder->Add("termsOfServiceLoading", IDS_TERMS_OF_SERVICE_SCREEN_LOADING); builder->Add("termsOfServiceLoading", IDS_TERMS_OF_SERVICE_SCREEN_LOADING);
#if BUILDFLAG(ENABLE_RLZ) #if BUILDFLAG(ENABLE_RLZ)
builder->AddF("eulaRlzDesc", builder->AddF("eulaRlzDesc",
...@@ -124,14 +123,6 @@ void EulaScreenHandler::DeclareLocalizedValues( ...@@ -124,14 +123,6 @@ void EulaScreenHandler::DeclareLocalizedValues(
IDS_OOBE_EULA_ACCEPT_AND_CONTINUE_BUTTON_TEXT); IDS_OOBE_EULA_ACCEPT_AND_CONTINUE_BUTTON_TEXT);
} }
void EulaScreenHandler::DeclareJSCallbacks() {
AddCallback("eulaOnLearnMore", &EulaScreenHandler::HandleOnLearnMore);
AddCallback("eulaOnInstallationSettingsPopupOpened",
&EulaScreenHandler::HandleOnInstallationSettingsPopupOpened);
AddCallback("EulaScreen.usageStatsEnabled",
&EulaScreenHandler::HandleUsageStatsEnabled);
}
void EulaScreenHandler::GetAdditionalParameters(base::DictionaryValue* dict) { void EulaScreenHandler::GetAdditionalParameters(base::DictionaryValue* dict) {
#if BUILDFLAG(ENABLE_RLZ) #if BUILDFLAG(ENABLE_RLZ)
dict->SetString("rlzEnabled", "enabled"); dict->SetString("rlzEnabled", "enabled");
...@@ -154,23 +145,18 @@ void EulaScreenHandler::Initialize() { ...@@ -154,23 +145,18 @@ void EulaScreenHandler::Initialize() {
void EulaScreenHandler::OnPasswordFetched(const std::string& tpm_password) { void EulaScreenHandler::OnPasswordFetched(const std::string& tpm_password) {
CallJS("login.EulaScreen.setTpmPassword", tpm_password); CallJS("login.EulaScreen.setTpmPassword", tpm_password);
CallJS("login.EulaScreen.showSecuritySettingsDialog");
} }
void EulaScreenHandler::HandleOnLearnMore() { void EulaScreenHandler::ShowStatsUsageLearnMore() {
if (!help_app_.get()) if (!help_app_.get())
help_app_ = new HelpAppLauncher( help_app_ = new HelpAppLauncher(
LoginDisplayHost::default_host()->GetNativeWindow()); LoginDisplayHost::default_host()->GetNativeWindow());
help_app_->ShowHelpTopic(HelpAppLauncher::HELP_STATS_USAGE); help_app_->ShowHelpTopic(HelpAppLauncher::HELP_STATS_USAGE);
} }
void EulaScreenHandler::HandleOnInstallationSettingsPopupOpened() { void EulaScreenHandler::ShowAdditionalTosDialog() {
if (screen_) CallJS("login.EulaScreen.showAdditionalTosDialog");
screen_->InitiatePasswordFetch();
}
void EulaScreenHandler::HandleUsageStatsEnabled(bool enabled) {
if (screen_)
screen_->SetUsageStatsEnabled(enabled);
} }
void EulaScreenHandler::UpdateLocalizedValues( void EulaScreenHandler::UpdateLocalizedValues(
......
...@@ -26,7 +26,7 @@ class HelpAppLauncher; ...@@ -26,7 +26,7 @@ class HelpAppLauncher;
// dtor. // dtor.
class EulaView { class EulaView {
public: public:
constexpr static StaticOobeScreenId kScreenId{"eula"}; constexpr static StaticOobeScreenId kScreenId{"oobe-eula-md"};
virtual ~EulaView() {} virtual ~EulaView() {}
...@@ -35,6 +35,8 @@ class EulaView { ...@@ -35,6 +35,8 @@ class EulaView {
virtual void Bind(EulaScreen* screen) = 0; virtual void Bind(EulaScreen* screen) = 0;
virtual void Unbind() = 0; virtual void Unbind() = 0;
virtual void OnPasswordFetched(const std::string& tpm_password) = 0; virtual void OnPasswordFetched(const std::string& tpm_password) = 0;
virtual void ShowStatsUsageLearnMore() = 0;
virtual void ShowAdditionalTosDialog() = 0;
}; };
// WebUI implementation of EulaScreenView. It is used to interact // WebUI implementation of EulaScreenView. It is used to interact
...@@ -53,20 +55,16 @@ class EulaScreenHandler : public EulaView, public BaseScreenHandler { ...@@ -53,20 +55,16 @@ class EulaScreenHandler : public EulaView, public BaseScreenHandler {
void Bind(EulaScreen* screen) override; void Bind(EulaScreen* screen) override;
void Unbind() override; void Unbind() override;
void OnPasswordFetched(const std::string& tpm_password) override; void OnPasswordFetched(const std::string& tpm_password) override;
void ShowStatsUsageLearnMore() override;
void ShowAdditionalTosDialog() override;
// BaseScreenHandler implementation: // BaseScreenHandler implementation:
void DeclareLocalizedValues( void DeclareLocalizedValues(
::login::LocalizedValuesBuilder* builder) override; ::login::LocalizedValuesBuilder* builder) override;
void DeclareJSCallbacks() override;
void GetAdditionalParameters(base::DictionaryValue* dict) override; void GetAdditionalParameters(base::DictionaryValue* dict) override;
void Initialize() override; void Initialize() override;
private: private:
// JS messages handlers.
void HandleOnLearnMore();
void HandleOnInstallationSettingsPopupOpened();
void HandleUsageStatsEnabled(bool enabled);
// Determines the online URL to use. // Determines the online URL to use.
std::string GetEulaOnlineUrl(); std::string GetEulaOnlineUrl();
std::string GetAdditionalToSUrl(); std::string GetAdditionalToSUrl();
...@@ -76,12 +74,12 @@ class EulaScreenHandler : public EulaView, public BaseScreenHandler { ...@@ -76,12 +74,12 @@ class EulaScreenHandler : public EulaView, public BaseScreenHandler {
EulaScreen* screen_ = nullptr; EulaScreen* screen_ = nullptr;
CoreOobeView* core_oobe_view_ = nullptr; CoreOobeView* core_oobe_view_ = nullptr;
// Help application used for help dialogs.
scoped_refptr<HelpAppLauncher> help_app_;
// Keeps whether screen should be shown right after initialization. // Keeps whether screen should be shown right after initialization.
bool show_on_init_ = false; bool show_on_init_ = false;
// Help application used for help dialogs.
scoped_refptr<HelpAppLauncher> help_app_;
base::WeakPtrFactory<EulaScreenHandler> weak_factory_{this}; base::WeakPtrFactory<EulaScreenHandler> weak_factory_{this};
DISALLOW_COPY_AND_ASSIGN(EulaScreenHandler); DISALLOW_COPY_AND_ASSIGN(EulaScreenHandler);
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
/** @const */ var SCREEN_WELCOME = 'connect'; /** @const */ var SCREEN_WELCOME = 'connect';
/** @const */ var SCREEN_OOBE_NETWORK = 'network-selection'; /** @const */ var SCREEN_OOBE_NETWORK = 'network-selection';
/** @const */ var SCREEN_OOBE_HID_DETECTION = 'hid-detection'; /** @const */ var SCREEN_OOBE_HID_DETECTION = 'hid-detection';
/** @const */ var SCREEN_OOBE_EULA = 'eula';
/** @const */ var SCREEN_OOBE_ENABLE_DEBUGGING = 'debugging'; /** @const */ var SCREEN_OOBE_ENABLE_DEBUGGING = 'debugging';
/** @const */ var SCREEN_OOBE_UPDATE = 'oobe-update'; /** @const */ var SCREEN_OOBE_UPDATE = 'oobe-update';
/** @const */ var SCREEN_OOBE_RESET = 'reset'; /** @const */ var SCREEN_OOBE_RESET = 'reset';
...@@ -94,7 +93,6 @@ cr.define('cr.ui.login', function() { ...@@ -94,7 +93,6 @@ cr.define('cr.ui.login', function() {
*/ */
var RESET_AVAILABLE_SCREEN_GROUP = [ var RESET_AVAILABLE_SCREEN_GROUP = [
SCREEN_OOBE_NETWORK, SCREEN_OOBE_NETWORK,
SCREEN_OOBE_EULA,
SCREEN_OOBE_AUTO_ENROLLMENT_CHECK, SCREEN_OOBE_AUTO_ENROLLMENT_CHECK,
SCREEN_GAIA_SIGNIN, SCREEN_GAIA_SIGNIN,
SCREEN_ACCOUNT_PICKER, SCREEN_ACCOUNT_PICKER,
......
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