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

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: Address feedback 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..dca1b5877b1816dfc0091a57e0c574d1dc1648d8 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,10 @@ cr.define('sync.confirmation', function() {
$('profile-picture').src = url;
}
+ function onPictureLoaded(e) {
+ $('picture-container').classList.add('loaded');
+ }
+
return {
initialize: initialize,
setUserImageURL: setUserImageURL

Powered by Google App Engine
This is Rietveld 408576698