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

Unified Diff: chrome/browser/resources/chromeos/login/screen_unrecoverable_cryptohome_error.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_unrecoverable_cryptohome_error.js
diff --git a/chrome/browser/resources/chromeos/login/screen_unrecoverable_cryptohome_error.js b/chrome/browser/resources/chromeos/login/screen_unrecoverable_cryptohome_error.js
index a00d536944d50397682344cdd0adfa2c2b25cf74..62ffc3b68f68c4b6da6415cbef7123f1c0a0ef71 100644
--- a/chrome/browser/resources/chromeos/login/screen_unrecoverable_cryptohome_error.js
+++ b/chrome/browser/resources/chromeos/login/screen_unrecoverable_cryptohome_error.js
@@ -2,51 +2,49 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-login.createScreen('UnrecoverableCryptohomeErrorScreen',
- 'unrecoverable-cryptohome-error', function() {
- return {
- EXTERNAL_API: [
- 'show',
- 'resumeAfterFeedbackUI'
- ],
+login.createScreen(
+ 'UnrecoverableCryptohomeErrorScreen', 'unrecoverable-cryptohome-error',
+ function() {
+ return {
+ EXTERNAL_API: ['show', 'resumeAfterFeedbackUI'],
- /** @override */
- decorate: function() {
- this.card_ = $('unrecoverable-cryptohome-error-card');
- this.throbber_ = $('unrecoverable-cryptohome-error-busy');
+ /** @override */
+ decorate: function() {
+ this.card_ = $('unrecoverable-cryptohome-error-card');
+ this.throbber_ = $('unrecoverable-cryptohome-error-busy');
- this.card_.addEventListener('done', function(e) {
- this.setLoading_(true);
- $('oobe').hidden = true; // Hide while showing the feedback UI.
- chrome.send('sendFeedbackAndResyncUserData');
- }.bind(this));
- },
+ this.card_.addEventListener('done', function(e) {
+ this.setLoading_(true);
+ $('oobe').hidden = true; // Hide while showing the feedback UI.
+ chrome.send('sendFeedbackAndResyncUserData');
+ }.bind(this));
+ },
- /**
- * Sets whether to show the loading throbber.
- * @param {boolean} loading
- */
- setLoading_: function(loading) {
- this.card_.hidden = loading;
- this.throbber_.hidden = !loading;
- },
+ /**
+ * Sets whether to show the loading throbber.
+ * @param {boolean} loading
+ */
+ setLoading_: function(loading) {
+ this.card_.hidden = loading;
+ this.throbber_.hidden = !loading;
+ },
- /**
- * Show the unrecoverable cryptohome error screen to ask user permission
- * to collect a feedback report.
- */
- show: function() {
- this.setLoading_(false);
+ /**
+ * Show the unrecoverable cryptohome error screen to ask user permission
+ * to collect a feedback report.
+ */
+ show: function() {
+ this.setLoading_(false);
- Oobe.getInstance().headerHidden = true;
- Oobe.showScreen({id: SCREEN_UNRECOVERABLE_CRYPTOHOME_ERROR});
- },
+ Oobe.getInstance().headerHidden = true;
+ Oobe.showScreen({id: SCREEN_UNRECOVERABLE_CRYPTOHOME_ERROR});
+ },
- /**
- * Shows the loading UI after the feedback UI is dismissed.
- */
- resumeAfterFeedbackUI: function() {
- $('oobe').hidden = false;
- }
- };
-});
+ /**
+ * Shows the loading UI after the feedback UI is dismissed.
+ */
+ resumeAfterFeedbackUI: function() {
+ $('oobe').hidden = false;
+ }
+ };
+ });

Powered by Google App Engine
This is Rietveld 408576698