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

Unified Diff: chrome/browser/resources/welcome/win10/sectioned.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/welcome/win10/sectioned.js
diff --git a/chrome/browser/resources/welcome/win10/sectioned.js b/chrome/browser/resources/welcome/win10/sectioned.js
index 9d5e07f71a8addc637249f3aa66069950a65c0a1..09137e957f6d20da1461d135f4c996c26e404eff 100644
--- a/chrome/browser/resources/welcome/win10/sectioned.js
+++ b/chrome/browser/resources/welcome/win10/sectioned.js
@@ -50,30 +50,25 @@ cr.define('sectioned', function() {
// Asynchronously check if Chrome is pinned to the taskbar.
- cr.sendWithPromise('getPinnedToTaskbarState').then(
- function(isPinnedToTaskbar) {
- // Allow overriding of the result via a query parameter.
- // TODO(pmonette): Remove these checks when they are no longer needed.
- /** @const */ var VARIANT_KEY = 'variant';
- var VariantType = {
- DEFAULT_ONLY: 'defaultonly',
- COMBINED: 'combined'
- };
- var params = new URLSearchParams(location.search.slice(1));
- if (params.has(VARIANT_KEY)) {
- if (params.get(VARIANT_KEY) === VariantType.DEFAULT_ONLY)
- app.isCombined = false;
- else if (params.get(VARIANT_KEY) === VariantType.COMBINED)
- app.isCombined = true;
- } else {
- app.isCombined = !isPinnedToTaskbar;
- }
- });
+ cr.sendWithPromise('getPinnedToTaskbarState')
+ .then(function(isPinnedToTaskbar) {
+ // Allow overriding of the result via a query parameter.
+ // TODO(pmonette): Remove these checks when they are no longer needed.
+ /** @const */ var VARIANT_KEY = 'variant';
+ var VariantType = {DEFAULT_ONLY: 'defaultonly', COMBINED: 'combined'};
+ var params = new URLSearchParams(location.search.slice(1));
+ if (params.has(VARIANT_KEY)) {
+ if (params.get(VARIANT_KEY) === VariantType.DEFAULT_ONLY)
+ app.isCombined = false;
+ else if (params.get(VARIANT_KEY) === VariantType.COMBINED)
+ app.isCombined = true;
+ } else {
+ app.isCombined = !isPinnedToTaskbar;
+ }
+ });
}
- return {
- initialize: initialize
- };
+ return {initialize: initialize};
});
document.addEventListener('DOMContentLoaded', sectioned.initialize);

Powered by Google App Engine
This is Rietveld 408576698