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

Unified Diff: chrome/browser/resources/profile_signin_confirmation.js

Issue 12221111: Add a modal confirmation dialog to the enterprise profile sign-in flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more cleanup Created 7 years, 10 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/profile_signin_confirmation.js
diff --git a/chrome/browser/resources/profile_signin_confirmation.js b/chrome/browser/resources/profile_signin_confirmation.js
new file mode 100644
index 0000000000000000000000000000000000000000..2364beac2d54898fd276a374a7c3f9fbfdca593c
--- /dev/null
+++ b/chrome/browser/resources/profile_signin_confirmation.js
@@ -0,0 +1,27 @@
+cr.define('profile_signin_confirmation', function() {
+ 'use strict';
+
+ function initialize() {
+ var args = JSON.parse(chrome.getVariableValue('dialogArguments'));
+ $('dialogMessage').textContent = loadTimeData.getStringF(
+ 'dialogMessage', args.username);
+ $('dialogPrompt').textContent = loadTimeData.getStringF(
+ 'dialogPrompt', args.username);
+ $('createButton').addEventListener('click', function() {
Andrew T Wilson (Slow) 2013/02/10 20:47:26 This is fine as is, but one question:Does the moda
dconnelly 2013/02/11 10:37:04 Whoops, missed this comment. Yes, 'click' seems t
+ chrome.send('createNewProfile');
+ });
+ $('continueButton').addEventListener('click', function() {
+ chrome.send('continue');
+ });
+ $('cancelButton').addEventListener('click', function() {
+ chrome.send('cancel');
+ });
+ }
+
+ return {
+ initialize: initialize
+ };
+});
+
+document.addEventListener('DOMContentLoaded',
+ profile_signin_confirmation.initialize);

Powered by Google App Engine
This is Rietveld 408576698