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

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

Issue 2943093002: Add internals page for DICE (Closed)
Patch Set: Fix compile error 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..4a63983482f05fe4d859feb23ffcea7818d60d77
--- /dev/null
+++ b/chrome/browser/resources/signin/signin_dice_internals/signin_dice_internals.js
@@ -0,0 +1,21 @@
+/* Copyright 2017 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,
+ };
+});
+
+document.addEventListener('DOMContentLoaded', signin.dice.initialize);
« no previous file with comments | « chrome/browser/resources/signin/signin_dice_internals/signin_dice_internals.html ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698