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

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

Issue 2780933003: DevTools: support UISourceCode rename in automapping (Closed)
Patch Set: fix test Created 3 years, 9 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
Index: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
index bc8be33cc8292ce49935da30de2458a389714e5c..0800accc4ec0dd9b13db1716fc53edc54b19fbad 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
@@ -1343,7 +1343,7 @@ Sources.NavigatorUISourceCodeTreeNode = class extends Sources.NavigatorTreeNode
function commitHandler(element, newTitle, oldTitle) {
if (newTitle !== oldTitle) {
this._treeElement.title = newTitle;
- this._uiSourceCode.rename(newTitle, renameCallback.bind(this));
+ this._uiSourceCode.rename(newTitle).then(renameCallback.bind(this));
return;
}
afterEditing.call(this, true);

Powered by Google App Engine
This is Rietveld 408576698