Chromium Code Reviews| Index: chrome/browser/resources/sync_confirmation/sync_confirmation.js |
| diff --git a/chrome/browser/resources/sync_confirmation/sync_confirmation.js b/chrome/browser/resources/sync_confirmation/sync_confirmation.js |
| index aeb8b40aca38d0bcbfbaf692107a647ce55b41a1..f6f733b03ac73a4045ec3eca6d8aea50482cb2bc 100644 |
| --- a/chrome/browser/resources/sync_confirmation/sync_confirmation.js |
| +++ b/chrome/browser/resources/sync_confirmation/sync_confirmation.js |
| @@ -21,6 +21,7 @@ cr.define('sync.confirmation', function() { |
| $('confirmButton').addEventListener('click', onConfirm); |
| $('undoButton').addEventListener('click', onUndo); |
| $('settingsLink').addEventListener('click', onGoToSettings); |
| + $('profile-picture').addEventListener('load', onPictureLoaded); |
| chrome.send('initialized'); |
| } |
| @@ -28,6 +29,11 @@ cr.define('sync.confirmation', function() { |
| $('profile-picture').src = url; |
| } |
| + function onPictureLoaded(e) { |
| + $('picture-container') |
| + .className = $('picture-container').className + ' loaded'; |
|
Dan Beam
2016/02/13 02:16:10
$('picture-container').classList.add('loaded');
anthonyvd
2016/02/22 17:09:23
Done.
|
| + } |
| + |
| return { |
| initialize: initialize, |
| setUserImageURL: setUserImageURL |