OLD | NEW |
(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() { |
| 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); |
OLD | NEW |