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

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

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (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/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..a29c409ddf78b5d02a9769c10ac1404058c673c8 100644
--- a/chrome/browser/resources/inline_login/inline_login.js
+++ b/chrome/browser/resources/inline_login/inline_login.js
@@ -21,8 +21,8 @@ cr.define('inline.login', function() {
var authReadyFired;
/**
- * Whether the login UI is loaded for signing in primary account.
- */
+ * Whether the login UI is loaded for signing in primary account.
+ */
var isLoginPrimaryAccount;
function onResize(e) {
@@ -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