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

Side by Side Diff: chrome/browser/resources/welcome/win10/inline.js

Issue 2722683002: Addressing UX regression on Win10 FRE, and changing timeout behavior (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('inline', function() { 5 cr.define('inline', function() {
6 'use strict'; 6 'use strict';
7 7
8 function computeClasses(isCombined) { 8 function computeClasses(isCombined) {
9 if (isCombined) 9 if (isCombined)
10 return 'section expandable expanded'; 10 return 'section expandable expanded';
(...skipping 16 matching lines...) Expand all
27 }); 27 });
28 } 28 }
29 } 29 }
30 30
31 function initialize() { 31 function initialize() {
32 var app = $('inline-app'); 32 var app = $('inline-app');
33 33
34 // Set variables. 34 // Set variables.
35 // Determines if the combined variant should be displayed. The combined 35 // Determines if the combined variant should be displayed. The combined
36 // variant includes instructions on how to pin Chrome to the taskbar. 36 // variant includes instructions on how to pin Chrome to the taskbar.
37 app.isCombined = false; 37 app.isCombined = true;
tommycli 2017/02/27 23:17:22 I guess I'm a bit confused as how changing this wo
tmartino 2017/02/28 00:08:53 Whoops, that's a great catch--this is slightly com
38 38
39 // Set handlers. 39 // Set handlers.
40 app.computeClasses = computeClasses; 40 app.computeClasses = computeClasses;
41 app.onContinue = onContinue; 41 app.onContinue = onContinue;
42 app.onOpenSettings = onOpenSettings; 42 app.onOpenSettings = onOpenSettings;
43 app.onToggle = onToggle.bind(this, app); 43 app.onToggle = onToggle.bind(this, app);
44 44
45 // Asynchronously check if Chrome is pinned to the taskbar. 45 // Asynchronously check if Chrome is pinned to the taskbar.
46 cr.sendWithPromise('getPinnedToTaskbarState').then( 46 cr.sendWithPromise('getPinnedToTaskbarState').then(
47 function(isPinnedToTaskbar) { 47 function(isPinnedToTaskbar) {
(...skipping 15 matching lines...) Expand all
63 } 63 }
64 }); 64 });
65 } 65 }
66 66
67 return { 67 return {
68 initialize: initialize 68 initialize: initialize
69 }; 69 };
70 }); 70 });
71 71
72 document.addEventListener('DOMContentLoaded', inline.initialize); 72 document.addEventListener('DOMContentLoaded', inline.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698