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

Unified Diff: chrome/browser/resources/options/manage_profile_overlay.js

Issue 8598006: [Multi Profile] Highlight icon in ManageProfileOverlay. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/manage_profile_overlay.js
diff --git a/chrome/browser/resources/options/manage_profile_overlay.js b/chrome/browser/resources/options/manage_profile_overlay.js
index 5a7379e0a6e3c212151ec88b09ff3fddccd3894d..5a931a9e6007d0df769557b5b8bbd9b0f46dc23d 100644
--- a/chrome/browser/resources/options/manage_profile_overlay.js
+++ b/chrome/browser/resources/options/manage_profile_overlay.js
@@ -102,6 +102,11 @@ cr.define('options', function() {
receiveDefaultProfileIcons_: function(iconURLs) {
$('manage-profile-icon-grid').dataModel = new ArrayDataModel(iconURLs);
+ // Changing the dataModel resets the selectedItem. Re-select it, if there
+ // is one.
+ if (this.profileInfo_)
+ $('manage-profile-icon-grid').selectedItem = this.profileInfo_.iconURL;
+
var grid = $('manage-profile-icon-grid');
// Recalculate the measured item size.
grid.measured_ = null;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698