Commit 2f12d421 authored by binji@chromium.org's avatar binji@chromium.org

[Multi Profile] Highlight icon in ManageProfileOverlay.

BUG=104697
TEST=go to chrome://settings/personal. Add a user. Edit the user. The icon of that user should be selected.


Review URL: http://codereview.chromium.org/8598006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111023 0039d316-1c4b-4281-b951-d872f2087c98
parent 026abdef
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment