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

Unified Diff: chrome/browser/resources/md_user_manager/control_bar.js

Issue 2600683002: Run tools/clang-format-js on some of chrome/browser/resources/ (Closed)
Patch Set: hackhackhack Created 3 years, 11 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/md_user_manager/control_bar.js
diff --git a/chrome/browser/resources/md_user_manager/control_bar.js b/chrome/browser/resources/md_user_manager/control_bar.js
index 2c2b23800472966c3d44f7421b978d77dc3bb2cd..5e22faf8086109ee2968381e41956bd37261cebd 100644
--- a/chrome/browser/resources/md_user_manager/control_bar.js
+++ b/chrome/browser/resources/md_user_manager/control_bar.js
@@ -6,7 +6,7 @@
* @fileoverview 'control-bar' is the horizontal bar at the bottom of the user
* manager screen.
*/
- Polymer({
+Polymer({
is: 'control-bar',
behaviors: [
@@ -18,19 +18,13 @@
* True if 'Browse as Guest' button is displayed.
* @type {boolean}
*/
- showGuest: {
- type: Boolean,
- value: false
- },
+ showGuest: {type: Boolean, value: false},
/**
* True if 'Add Person' button is displayed.
* @type {boolean}
*/
- showAddPerson: {
- type: Boolean,
- value: false
- },
+ showAddPerson: {type: Boolean, value: false},
/** @private {!signin.ProfileBrowserProxy} */
browserProxy_: Object,
@@ -58,15 +52,14 @@
* @private
*/
onLaunchGuestTap_: function(event) {
- this.browserProxy_.areAllProfilesLocked().then(
- function(allProfilesLocked) {
- if (!allProfilesLocked || this.isForceSigninEnabled_) {
- this.browserProxy_.launchGuestUser();
- } else {
- document.querySelector('error-dialog').show(
- this.i18n('browseAsGuestAllProfilesLockedError'));
- }
- }.bind(this));
+ this.browserProxy_.areAllProfilesLocked().then(function(allProfilesLocked) {
+ if (!allProfilesLocked || this.isForceSigninEnabled_) {
+ this.browserProxy_.launchGuestUser();
+ } else {
+ document.querySelector('error-dialog')
+ .show(this.i18n('browseAsGuestAllProfilesLockedError'));
+ }
+ }.bind(this));
},
/**
@@ -75,15 +68,14 @@
* @private
*/
onAddUserTap_: function(event) {
- this.browserProxy_.areAllProfilesLocked().then(
- function(allProfilesLocked) {
- if (!allProfilesLocked || this.isForceSigninEnabled_) {
- // Event is caught by user-manager-pages.
- this.fire('change-page', {page: 'create-user-page'});
- } else {
- document.querySelector('error-dialog').show(
- this.i18n('addProfileAllProfilesLockedError'));
- }
- }.bind(this));
+ this.browserProxy_.areAllProfilesLocked().then(function(allProfilesLocked) {
+ if (!allProfilesLocked || this.isForceSigninEnabled_) {
+ // Event is caught by user-manager-pages.
+ this.fire('change-page', {page: 'create-user-page'});
+ } else {
+ document.querySelector('error-dialog')
+ .show(this.i18n('addProfileAllProfilesLockedError'));
+ }
+ }.bind(this));
}
});

Powered by Google App Engine
This is Rietveld 408576698