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

Unified Diff: Source/devtools/front_end/components/ExecutionContextModel.js

Issue 1670023002: Fix library name display in devtools (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/2454_1
Patch Set: Created 4 years, 10 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: Source/devtools/front_end/components/ExecutionContextModel.js
diff --git a/Source/devtools/front_end/components/ExecutionContextModel.js b/Source/devtools/front_end/components/ExecutionContextModel.js
index 95a55893fff06e4d96957ca16999fc01025d86f6..dedee3dd966344e760edea5b82890ba9125c314a 100644
--- a/Source/devtools/front_end/components/ExecutionContextModel.js
+++ b/Source/devtools/front_end/components/ExecutionContextModel.js
@@ -32,6 +32,12 @@ WebInspector.ExecutionContextModel.prototype = {
_titleFor: function(executionContext)
{
var result;
+ // Start Dart specific code.
+ if (executionContext.language == "Dart") {
+ return executionContext.name;
+ }
+ // End Dart specific code.
+
if (executionContext.isMainWorldContext) {
if (executionContext.frameId) {
var frame = executionContext.target().resourceTreeModel.frameForId(executionContext.frameId);
« 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