OLD | NEW |
(Empty) | |
| 1 /* Copyright 2017 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, |
| 18 }; |
| 19 }); |
| 20 |
| 21 document.addEventListener('DOMContentLoaded', signin.dice.initialize); |
OLD | NEW |