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

Unified Diff: Source/bindings/core/dart/DartScriptState.cpp

Issue 974273003: Revert "Revert "Support multiple DOM isolates and tweak devtools frontend to better handle large #s… (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/dartium
Patch Set: Created 5 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 | « Source/bindings/core/dart/DartScriptState.h ('k') | Source/devtools/front_end/console/ConsoleView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/dart/DartScriptState.cpp
diff --git a/Source/bindings/core/dart/DartScriptState.cpp b/Source/bindings/core/dart/DartScriptState.cpp
index 7b17371e6f8fc2d48176944cf43274e415a0b314..d2570e072b0462b2d7bd844a1ebbdc61bd817faa 100644
--- a/Source/bindings/core/dart/DartScriptState.cpp
+++ b/Source/bindings/core/dart/DartScriptState.cpp
@@ -39,11 +39,16 @@
namespace blink {
-DartScriptState::DartScriptState(Dart_Isolate isolate, intptr_t libraryId, V8ScriptState* v8ScriptState)
+DartScriptState::DartScriptState(Dart_Isolate isolate, intptr_t libraryId, V8ScriptState* v8ScriptState, const String& isolateName)
{
m_isolate = isolate;
m_libraryId = libraryId;
- m_libraryUrl = DartUtilities::toString(Dart_GetLibraryURL(libraryId));
+ String libraryUrl = DartUtilities::toString(Dart_GetLibraryURL(libraryId));
+ if (!isolateName.isEmpty()) {
+ m_name = String::format("%s - %s", isolateName.utf8().data(), libraryUrl.utf8().data());
+ } else {
+ m_name = libraryUrl;
+ }
m_v8ScriptState = v8ScriptState;
}
« no previous file with comments | « Source/bindings/core/dart/DartScriptState.h ('k') | Source/devtools/front_end/console/ConsoleView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698