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

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

Issue 2462493002: DevTools: [Workspace] show dirty asterisk in file tab title. (Closed)
Patch Set: Created 4 years, 2 months 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 c98451ac45ea9eb4a6dceefdabfc803e79660dc3..15877233783a531da09f964d801c18d4b5138ac2 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js
@@ -311,9 +311,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