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)); |
} |
}); |