Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(892)

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js

Issue 2466013002: DevTools: [Workspace] show dirty asterisk in file tab title. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7bc71e08772dbd2f1b2b25bfe48308d501e3db9b..291f1ef7a657fecffc3b16d0117430751b23a9bb 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js
@@ -307,9 +307,10 @@ WebInspector.TabbedEditorContainer.prototype = {
*/
_titleForFile: function(uiSourceCode)
{
- uiSourceCode = WebInspector.persistence.fileSystem(uiSourceCode) || uiSourceCode;
+ var binding = WebInspector.persistence.binding(uiSourceCode);
+ var titleUISourceCode = binding ? binding.fileSystem : uiSourceCode;
var maxDisplayNameLength = 30;
- var title = uiSourceCode.displayName(true).trimMiddle(maxDisplayNameLength);
+ var title = titleUISourceCode.displayName(true).trimMiddle(maxDisplayNameLength);
if (uiSourceCode.isDirty() || WebInspector.persistence.hasUnsavedCommittedChanges(uiSourceCode))
title += "*";
return title;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698