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

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: Update. 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..2421d7a732f07f0cfe21331be22e5361db8183db 100644
--- a/chrome/browser/resources/chromeos/login/oobe_eula.js
+++ b/chrome/browser/resources/chromeos/login/oobe_eula.js
@@ -33,6 +33,21 @@ Polymer({
type: Boolean,
value: true,
},
+
+ /**
+ * If "Report anonymous usage stats" checkbox is checked.
+ */
+ usageStatsChecked: {
+ type: Boolean,
+ value: false,
+ },
+
+ /*
stevenjb 2016/08/23 16:45:17 /**
Alexander Alekseev 2016/08/25 01:28:22 Done.
+ * Reference to OOBE screen object.
+ */
+ screen: {
+ type: Object,
stevenjb 2016/08/23 16:45:17 Please typedef this.
Alexander Alekseev 2016/08/25 01:28:22 Done.
+ },
},
/**
@@ -56,4 +71,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');
+ },
});

Powered by Google App Engine
This is Rietveld 408576698