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

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

Issue 9836039: Add reporting notification to the enterprise banner on the CrOS login screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 8 years, 9 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/display_manager.js
diff --git a/chrome/browser/resources/chromeos/login/display_manager.js b/chrome/browser/resources/chromeos/login/display_manager.js
index a8b7cee7f0eb564965095755b591c1b81cb8674b..ccda444e931166409caf4b99059b3a164993fbc8 100644
--- a/chrome/browser/resources/chromeos/login/display_manager.js
+++ b/chrome/browser/resources/chromeos/login/display_manager.js
@@ -17,6 +17,9 @@ const ACCELERATOR_ENROLLMENT = 'enrollment';
const ACCELERATOR_EXIT = 'exit';
const ACCELERATOR_VERSION = 'version';
+/* Help topic identifiers. */
+const HELP_TOPIC_ENTERPRISE_REPORTING = 2535613;
+
cr.define('cr.ui.login', function() {
var Bubble = cr.ui.Bubble;
@@ -405,11 +408,21 @@ cr.define('cr.ui.login', function() {
/**
* Sets the text content of the enterprise info message.
* @param {string} messageText The message text.
+ * @param {boolean} showReportingHint Whether to show the reporting warning.
*/
- DisplayManager.setEnterpriseInfo = function(messageText) {
+ DisplayManager.setEnterpriseInfo = function(messageText, showReportingHint) {
$('enterprise-info-message').textContent = messageText;
- if (messageText)
+ if (messageText) {
$('enterprise-info-container').hidden = false;
+ if (showReportingHint) {
+ $('enterprise-reporting-hint-container').hidden = false;
+ var link = $('enterprise-reporting-hint-link');
+ link.addEventListener('click', function(e) {
+ chrome.send('launchHelpApp', [HELP_TOPIC_ENTERPRISE_REPORTING]);
+ e.preventDefault();
+ });
+ }
+ }
};
// Export
« no previous file with comments | « chrome/browser/chromeos/login/version_info_updater.cc ('k') | chrome/browser/resources/chromeos/login/login.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698