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

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

Issue 1681203002: Add the decorative icons to the sync confirmation dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/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

Powered by Google App Engine
This is Rietveld 408576698