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

Unified Diff: chrome/browser/resources/inline_login/inline_login.js

Issue 2600683002: Run tools/clang-format-js on some of chrome/browser/resources/ (Closed)
Patch Set: event_handler.js Created 4 years 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/inline_login/inline_login.js
diff --git a/chrome/browser/resources/inline_login/inline_login.js b/chrome/browser/resources/inline_login/inline_login.js
index 17f1c433863169c72c63ec7d6a5fc1c58251ccae..5243dcf2a5d2e6edf32d1e7bebda22ed455f9335 100644
--- a/chrome/browser/resources/inline_login/inline_login.js
+++ b/chrome/browser/resources/inline_login/inline_login.js
@@ -77,9 +77,11 @@ cr.define('inline.login', function() {
// TODO(rogerta): in when using webview, the |completeLogin| argument
// is ignored. See addEventListener() call above.
authExtHost.load(data.authMode, data, completeLogin);
- $('contents').classList.toggle('loading',
- data.authMode != cr.login.GaiaAuthHost.AuthMode.DESKTOP ||
- data.constrained == '1');
+ $('contents')
+ .classList.toggle(
+ 'loading',
+ data.authMode != cr.login.GaiaAuthHost.AuthMode.DESKTOP ||
+ data.constrained == '1');
isLoginPrimaryAccount = data.isLoginPrimaryAccount;
}
@@ -114,19 +116,20 @@ cr.define('inline.login', function() {
}
function showBackButton() {
-
$('navigation-button').icon =
isRTL() ? 'icons:arrow-forward' : 'icons:arrow-back';
- $('navigation-button').setAttribute(
- 'aria-label', loadTimeData.getString('accessibleBackButtonLabel'));
+ $('navigation-button')
+ .setAttribute(
+ 'aria-label', loadTimeData.getString('accessibleBackButtonLabel'));
}
function showCloseButton() {
$('navigation-button').icon = 'icons:close';
$('navigation-button').classList.add('enabled');
- $('navigation-button').setAttribute(
- 'aria-label', loadTimeData.getString('accessibleCloseButtonLabel'));
+ $('navigation-button')
+ .setAttribute(
+ 'aria-label', loadTimeData.getString('accessibleCloseButtonLabel'));
}
function navigationButtonClicked() {

Powered by Google App Engine
This is Rietveld 408576698