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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 cr.define('profile_signin_confirmation', function() {
2 'use strict';
3
4 function initialize() {
5 var args = JSON.parse(chrome.getVariableValue('dialogArguments'));
6 $('dialogMessage').textContent = loadTimeData.getStringF(
7 'dialogMessage', args.username);
8 $('dialogPrompt').textContent = loadTimeData.getStringF(
9 'dialogPrompt', args.username);
10 $('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
11 chrome.send('createNewProfile');
12 });
13 $('continueButton').addEventListener('click', function() {
14 chrome.send('continue');
15 });
16 $('cancelButton').addEventListener('click', function() {
17 chrome.send('cancel');
18 });
19 }
20
21 return {
22 initialize: initialize
23 };
24 });
25
26 document.addEventListener('DOMContentLoaded',
27 profile_signin_confirmation.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698