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

Unified Diff: chrome/browser/resources/chromeos/login/oobe_eula.js

Issue 2269433002: ChromeOS: Add more controls to OOBE EULA screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment. Created 4 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/login/oobe_eula.js
diff --git a/chrome/browser/resources/chromeos/login/oobe_eula.js b/chrome/browser/resources/chromeos/login/oobe_eula.js
index 47c6069bceda05b93308a83c3f102356c5a77d36..78cf7edec75b93111b66abf57b890321e65f27f3 100644
--- a/chrome/browser/resources/chromeos/login/oobe_eula.js
+++ b/chrome/browser/resources/chromeos/login/oobe_eula.js
@@ -33,6 +33,22 @@ Polymer({
type: Boolean,
value: true,
},
+
+ /**
+ * If "Report anonymous usage stats" checkbox is checked.
+ */
+ usageStatsChecked: {
+ type: Boolean,
+ value: false,
+ },
+
+ /**
+ * Reference to OOBE screen object.
+ * @type {!OobeTypes.Screen}
+ */
+ screen: {
+ type: Object,
+ },
},
/**
@@ -56,4 +72,33 @@ Polymer({
eulaAccepted_: function(event) {
chrome.send('login.EulaScreen.userActed', ['accept-button']);
},
+
+ /**
+ * On-change event handler for usageStats.
+ *
+ * * @private
+ */
+ onUsageChanged_: function() {
+ this.screen.onUsageStatsClicked_(this.$.usageStats.checked);
+ },
+
+ /**
+ * On-tap event handler for installationSettings.
+ *
+ * * @private
+ */
+ onInstallationSettingsClicked_: function() {
+ chrome.send('eulaOnInstallationSettingsPopupOpened');
+ $('popup-overlay').hidden = false;
+ $('installation-settings-ok-button').focus();
+ },
+
+ /**
+ * On-tap event handler for stats-help-link.
+ *
+ * * @private
+ */
+ onUsageStatsHelpLinkClicked_: function() {
+ chrome.send('eulaOnLearnMore');
+ },
});
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_eula.html ('k') | chrome/browser/resources/chromeos/login/oobe_screen_eula.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698