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

Unified Diff: chrome/browser/resources/signin/signin_dice_internals/signin_dice_internals.js

Issue 2943093002: Add internals page for DICE (Closed)
Patch Set: Fix the UI Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
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.
droger 2017/06/16 13:29:15 2017
msarda 2017/06/20 10:16:43 Done.
+ * 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
+ };
+});
+
+document.addEventListener('DOMContentLoaded', signin.dice.initialize);

Powered by Google App Engine
This is Rietveld 408576698