| Index: chrome/browser/resources/settings/device_page/display.js
|
| diff --git a/chrome/browser/resources/settings/device_page/display.js b/chrome/browser/resources/settings/device_page/display.js
|
| index 17af4583e5a47c35370cc7650de9cc3cb0bd5990..5b83b075579f10bada5cda397170860ad90c5332 100644
|
| --- a/chrome/browser/resources/settings/device_page/display.js
|
| +++ b/chrome/browser/resources/settings/device_page/display.js
|
| @@ -233,17 +233,16 @@ Polymer({
|
| },
|
|
|
| /**
|
| - * @param {!{detail: number}} e
|
| + * @param {!{detail: string}} e |e.detail| is the id of the selected display.
|
| * @private
|
| */
|
| onSelectDisplay_: function(e) {
|
| - var index = e.detail;
|
| - assert(index >= 0);
|
| - if (index >= this.displays.length)
|
| - return;
|
| - this.selectedDisplay = this.displays[e.detail];
|
| - // Force active in case selected display was clicked.
|
| - e.target.active = true;
|
| + var id = e.detail;
|
| + for (let display of this.displays) {
|
| + if (id != display.id)
|
| + continue;
|
| + this.selectedDisplay = display;
|
| + }
|
| },
|
|
|
| /** @private */
|
|
|