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

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

Issue 2401853005: Adding client code for new Windows 10 First Run Experience (Closed)
Patch Set: Comments #1 Created 4 years, 2 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
tmartino 2016/10/14 19:32:09 I'm going to defer to your OWNERS reviewer on whet
Patrick Monette 2016/10/14 21:37:24 Acknowledged.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 cr.define('defaultbrowser', function() {
6 'use strict';
7
8 function injectLocalizedStrings() {
9 $('section-steps--click-edge').innerHTML =
10 loadTimeData.getString('clickEdgeText');
11 $('section-steps--select-chrome').innerHTML =
12 loadTimeData.getString('clickSelectChrome');
13 }
14
15 function onSetDefaultBrowser(e) {
16 chrome.send('handleSetDefaultBrowser');
17 }
18
19 function initialize() {
20 injectLocalizedStrings();
21
22 $('set-default-button').addEventListener('click', onSetDefaultBrowser);
23 }
24
25 return {
26 initialize: initialize
27 };
28 });
29
30 document.addEventListener('DOMContentLoaded', defaultbrowser.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698