| Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
|
| index ea13f19990dc01b1d2a46d05f1eb9fbbfeac0563..bb22953601b16371efca99c4359f629ea5108a32 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js
|
| @@ -306,12 +306,15 @@ Timeline.TimelinePanel = class extends UI.Panel {
|
| _recreateToolbarItems() {
|
| this._panelToolbar.removeToolbarItems();
|
|
|
| + // Close
|
| + if (!this._model.isEmpty()) {
|
| + const clearButton = new UI.ToolbarButton(Common.UIString('Close profile'), 'largeicon-delete');
|
| + clearButton.addEventListener(UI.ToolbarButton.Events.Click, this._clear, this);
|
| + this._panelToolbar.appendToolbarItem(clearButton);
|
| + this._panelToolbar.appendSeparator();
|
| + }
|
| +
|
| // Record
|
| - const newButton = new UI.ToolbarButton(Common.UIString('New recording'), 'largeicon-add', Common.UIString('New'));
|
| - newButton.setEnabled(!this._model.isEmpty());
|
| - newButton.addEventListener(UI.ToolbarButton.Events.Click, this._clear, this);
|
| - this._panelToolbar.appendToolbarItem(newButton);
|
| - this._panelToolbar.appendSeparator();
|
| this._panelToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._toggleRecordAction));
|
| this._panelToolbar.appendToolbarItem(UI.Toolbar.createActionButtonForId('main.reload'));
|
| this._panelToolbar.appendSeparator();
|
|
|