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

Unified Diff: third_party/pkg/angular/lib/perf/dev_tools_timeline.dart

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: third_party/pkg/angular/lib/perf/dev_tools_timeline.dart
diff --git a/third_party/pkg/angular/lib/perf/dev_tools_timeline.dart b/third_party/pkg/angular/lib/perf/dev_tools_timeline.dart
index fa4c9e2346720bb21c37de7a4590cc14cbb9b581..3c046a207fe254651637449722947ebd74eb6e4b 100644
--- a/third_party/pkg/angular/lib/perf/dev_tools_timeline.dart
+++ b/third_party/pkg/angular/lib/perf/dev_tools_timeline.dart
@@ -4,9 +4,10 @@ class DevToolsTimelineProfiler extends Profiler {
final dom.Console console = dom.window.console;
String prefix = '';
- int startTimer(String name, [String extraData]) {
+ String startTimer(String name, [String extraData]) {
console.time('$prefix$name');
prefix = '$prefix ';
+ return name;
}
void stopTimer(dynamic name) {

Powered by Google App Engine
This is Rietveld 408576698