Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 * found in the LICENSE file. */ | |
| 4 | |
| 5 cr.define('signin.dice', function() { | |
| 6 'use strict'; | |
| 7 | |
| 8 function initialize() { | |
| 9 $('enableSyncButton').addEventListener('click', onEnableSync); | |
| 10 } | |
| 11 | |
| 12 function onEnableSync(e) { | |
| 13 chrome.send('enableSync'); | |
| 14 } | |
| 15 | |
| 16 return { | |
| 17 initialize: initialize | |
|
Bernhard Bauer
2017/06/16 14:16:08
Nit: Maybe add a comma at the end so you can add m
| |
| 18 }; | |
| 19 }); | |
| 20 | |
| 21 document.addEventListener('DOMContentLoaded', signin.dice.initialize); | |
| OLD | NEW |