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

Unified Diff: runtime/observatory/lib/src/elements/function_ref.dart

Issue 2773073003: Revert "Added page to Observatory to display native memory allocation information." (Closed)
Patch Set: 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: runtime/observatory/lib/src/elements/function_ref.dart
diff --git a/runtime/observatory/lib/src/elements/function_ref.dart b/runtime/observatory/lib/src/elements/function_ref.dart
index c769fde9d721aa462808e7a2922b0edf6cd41f97..e5ace692a41729483caa6b5a5534500da6a62117 100644
--- a/runtime/observatory/lib/src/elements/function_ref.dart
+++ b/runtime/observatory/lib/src/elements/function_ref.dart
@@ -36,6 +36,7 @@ class FunctionRefElement extends HtmlElement implements Renderable {
factory FunctionRefElement(M.IsolateRef isolate, M.FunctionRef function,
{bool qualified: true, RenderingQueue queue}) {
+ assert(isolate != null);
assert(function != null);
assert(qualified != null);
FunctionRefElement e = document.createElement(tag.name);
@@ -65,7 +66,7 @@ class FunctionRefElement extends HtmlElement implements Renderable {
void render() {
var content = <Element>[
new AnchorElement(
- href: (M.isSyntheticFunction(_function.kind) || (_isolate == null))
+ href: M.isSyntheticFunction(_function.kind)
? null
: Uris.inspect(_isolate, object: _function))
..text = _function.name
@@ -77,7 +78,7 @@ class FunctionRefElement extends HtmlElement implements Renderable {
content.addAll([
new SpanElement()..text = '.',
new AnchorElement(
- href: (M.isSyntheticFunction(function.kind) || (_isolate == null))
+ href: M.isSyntheticFunction(function.kind)
? null
: Uris.inspect(_isolate, object: function))
..text = function.name

Powered by Google App Engine
This is Rietveld 408576698