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

Unified Diff: chrome/browser/resources/welcome/win10/inline.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/welcome/win10/inline.js
diff --git a/chrome/browser/resources/welcome/win10/inline.js b/chrome/browser/resources/welcome/win10/inline.js
index bef49ae4d76961e3e1cfb4ee2c48257d13613672..df67df5afb2918735018120300ff5cbb0c76d716 100644
--- a/chrome/browser/resources/welcome/win10/inline.js
+++ b/chrome/browser/resources/welcome/win10/inline.js
@@ -16,7 +16,7 @@ Polymer({
// TODO(pmonette): Remove these checks when they are no longer needed.
/** @const */
var VARIANT_KEY = 'variant';
- var VariantTypeMap = { 'defaultonly': false, 'combined': true };
+ var VariantTypeMap = {'defaultonly': false, 'combined': true};
var params = new URLSearchParams(location.search.slice(1));
if (params.has(VARIANT_KEY) && params.get(VARIANT_KEY) in VariantTypeMap)
this.isCombined = VariantTypeMap[params.get(VARIANT_KEY)];
@@ -30,8 +30,8 @@ Polymer({
ready: function() {
this.isCombined = false;
// Asynchronously check if Chrome is pinned to the taskbar.
- cr.sendWithPromise('getPinnedToTaskbarState').then(
- this.receivePinnedState_.bind(this));
+ cr.sendWithPromise('getPinnedToTaskbarState')
+ .then(this.receivePinnedState_.bind(this));
},
computeClasses: function(isCombined) {
@@ -52,8 +52,8 @@ Polymer({
var sections = this.shadowRoot.querySelectorAll('.section.expandable');
sections.forEach(function(section) {
var isExpanded = section.classList.toggle('expanded');
- section.querySelector('[role~="button"]').setAttribute(
- 'aria-expanded', isExpanded);
+ section.querySelector('[role~="button"]')
+ .setAttribute('aria-expanded', isExpanded);
});
}
});

Powered by Google App Engine
This is Rietveld 408576698