Chromium Code Reviews| Index: chrome/browser/resources/signin/signin_dice_internals/signin_dice_internals.js |
| diff --git a/chrome/browser/resources/signin/signin_dice_internals/signin_dice_internals.js b/chrome/browser/resources/signin/signin_dice_internals/signin_dice_internals.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ba6d89d3fd587297c9cfd1b1d7f40d844798e2c1 |
| --- /dev/null |
| +++ b/chrome/browser/resources/signin/signin_dice_internals/signin_dice_internals.js |
| @@ -0,0 +1,21 @@ |
| +/* Copyright 2016 The Chromium Authors. All rights reserved. |
| + * Use of this source code is governed by a BSD-style license that can be |
| + * found in the LICENSE file. */ |
| + |
| +cr.define('signin.dice', function() { |
| + 'use strict'; |
| + |
| + function initialize() { |
| + $('enableSyncButton').addEventListener('click', onEnableSync); |
| + } |
| + |
| + function onEnableSync(e) { |
| + chrome.send('enableSync'); |
| + } |
| + |
| + return { |
| + initialize: initialize |
|
Bernhard Bauer
2017/06/16 14:16:08
Nit: Maybe add a comma at the end so you can add m
|
| + }; |
| +}); |
| + |
| +document.addEventListener('DOMContentLoaded', signin.dice.initialize); |