Commit fc933cc2 authored by Lorne Mitchell's avatar Lorne Mitchell Committed by Commit Bot

DevTools: Fixed duplicate call to ls() for Action title.

Modified Action.title() to only call ls() on the options title property. Previously it would call ls() on the title property of Extension.title(), which already calls ls(). This resulted in a duplicate call.

Bug: 941561
Change-Id: Idc8d5da56c2ddd219234beb148d3eddd8fb6edd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1838700
Commit-Queue: Lorne Mitchell <lomitch@microsoft.com>
Reviewed-by: default avatarLorne Mitchell <lomitch@microsoft.com>
Reviewed-by: default avatarTim van der Lippe <tvanderlippe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704239}
parent 32e5c87f
......@@ -118,11 +118,11 @@ export default class Action extends Common.Object {
if (options) {
for (const pair of options) {
if (pair['value'] !== this._toggled) {
title = pair['title'];
title = ls(pair['title']);
}
}
}
return ls(title);
return title;
}
/**
......
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