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

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

Issue 2944703004: Run clang-format on .js files in c/b/r/chromeos (Closed)
Patch Set: Created 3 years, 6 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/screen_device_disabled.js
diff --git a/chrome/browser/resources/chromeos/login/screen_device_disabled.js b/chrome/browser/resources/chromeos/login/screen_device_disabled.js
index baaf9c3fd0947486047bfac6a2ec7265a69a1771..57f01e0188ec0826e77487ea600bdac2f5c89023 100644
--- a/chrome/browser/resources/chromeos/login/screen_device_disabled.js
+++ b/chrome/browser/resources/chromeos/login/screen_device_disabled.js
@@ -8,10 +8,7 @@
login.createScreen('DeviceDisabledScreen', 'device-disabled', function() {
return {
- EXTERNAL_API: [
- 'setEnrollmentDomain',
- 'setMessage'
- ],
+ EXTERNAL_API: ['setEnrollmentDomain', 'setMessage'],
/**
* Ignore any accelerators the user presses on this screen.
@@ -31,8 +28,7 @@ login.createScreen('DeviceDisabledScreen', 'device-disabled', function() {
* method will be shown when the user actually clicks the button. Make sure
* that this is a no-op.
*/
- cancel: function() {
- },
+ cancel: function() {},
/**
* Event handler that is invoked just before the screen in shown.
@@ -46,31 +42,30 @@ login.createScreen('DeviceDisabledScreen', 'device-disabled', function() {
},
/**
- * Updates the explanation shown to the user. The explanation will indicate
- * that the device is owned by |enrollment_domain|. If |enrollment_domain|
- * is null or empty, a generic explanation will be used instead that does
- * not reference any domain.
- * @param {string} enrollment_domain The domain that owns the device.
- */
+ * Updates the explanation shown to the user. The explanation will indicate
+ * that the device is owned by |enrollment_domain|. If |enrollment_domain|
+ * is null or empty, a generic explanation will be used instead that does
+ * not reference any domain.
+ * @param {string} enrollment_domain The domain that owns the device.
+ */
setEnrollmentDomain: function(enrollment_domain) {
if (enrollment_domain) {
// The contents of |enrollment_domain| is untrusted. Set the resulting
// string as |textContent| so that it gets treated as plain text and
// cannot be used to inject JS or HTML.
$('device-disabled-explanation').textContent = loadTimeData.getStringF(
- 'deviceDisabledExplanationWithDomain',
- enrollment_domain);
+ 'deviceDisabledExplanationWithDomain', enrollment_domain);
} else {
- $('device-disabled-explanation').textContent = loadTimeData.getString(
- 'deviceDisabledExplanationWithoutDomain');
+ $('device-disabled-explanation').textContent =
+ loadTimeData.getString('deviceDisabledExplanationWithoutDomain');
}
},
/**
- * Sets the message to show to the user.
- * @param {string} message The message to show to the user.
- */
+ * Sets the message to show to the user.
+ * @param {string} message The message to show to the user.
+ */
setMessage: function(message) {
// The contents of |message| is untrusted. Set it as |textContent| so that
// it gets treated as plain text and cannot be used to inject JS or HTML.

Powered by Google App Engine
This is Rietveld 408576698