Index: third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js b/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js |
index ed3add080ab9696f3a643893c1c6eea70156f761..1a8526d8fe07500c1734acd0ba6a79c024f6e34c 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js |
@@ -533,17 +533,16 @@ Sources.TabbedEditorContainer = class extends Common.Object { |
if (tabId) { |
var title = this._titleForFile(uiSourceCode); |
this._tabbedPane.changeTabTitle(tabId, title); |
+ var icon = null; |
if (Persistence.persistence.hasUnsavedCommittedChanges(uiSourceCode)) { |
- this._tabbedPane.setTabIcon( |
- tabId, 'smallicon-warning', Common.UIString('Changes to this file were not saved to file system.')); |
+ icon = UI.Icon.create('smallicon-warning'); |
+ icon.title = Common.UIString('Changes to this file were not saved to file system.'); |
} else if (Runtime.experiments.isEnabled('persistence2') && Persistence.persistence.binding(uiSourceCode)) { |
var binding = Persistence.persistence.binding(uiSourceCode); |
- this._tabbedPane.setTabIcon( |
- tabId, 'smallicon-green-checkmark', |
- Persistence.PersistenceUtils.tooltipForUISourceCode(binding.fileSystem)); |
- } else { |
- this._tabbedPane.setTabIcon(tabId, ''); |
+ icon = UI.Icon.create('smallicon-green-checkmark'); |
+ icon.title = Persistence.PersistenceUtils.tooltipForUISourceCode(binding.fileSystem); |
} |
+ this._tabbedPane.setTabIcon(tabId, icon); |
} |
} |