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

Unified Diff: runtime/lib/timer_patch.dart

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (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
« no previous file with comments | « runtime/lib/timer_impl.dart ('k') | runtime/lib/type_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/timer_patch.dart
diff --git a/runtime/lib/timer_patch.dart b/runtime/lib/timer_patch.dart
index 249a81afb7f2b19eec59a6756931e066b2523112..e5f7b06e624acfbdd37578135dd7e7bb968689c2 100644
--- a/runtime/lib/timer_patch.dart
+++ b/runtime/lib/timer_patch.dart
@@ -4,8 +4,10 @@
import 'dart:_internal' hide Symbol;
-@patch class Timer {
- @patch static Timer _createTimer(Duration duration, void callback()) {
+@patch
+class Timer {
+ @patch
+ static Timer _createTimer(Duration duration, void callback()) {
// TODO(iposva): Remove _TimerFactory and use VMLibraryHooks exclusively.
if (_TimerFactory._factory == null) {
_TimerFactory._factory = VMLibraryHooks.timerFactory;
@@ -15,11 +17,14 @@ import 'dart:_internal' hide Symbol;
}
int milliseconds = duration.inMilliseconds;
if (milliseconds < 0) milliseconds = 0;
- return _TimerFactory._factory(milliseconds, (_) { callback(); }, false);
+ return _TimerFactory._factory(milliseconds, (_) {
+ callback();
+ }, false);
}
- @patch static Timer _createPeriodicTimer(Duration duration,
- void callback(Timer timer)) {
+ @patch
+ static Timer _createPeriodicTimer(
+ Duration duration, void callback(Timer timer)) {
// TODO(iposva): Remove _TimerFactory and use VMLibraryHooks exclusively.
if (_TimerFactory._factory == null) {
_TimerFactory._factory = VMLibraryHooks.timerFactory;
@@ -33,9 +38,8 @@ import 'dart:_internal' hide Symbol;
}
}
-typedef Timer _TimerFactoryClosure(int milliseconds,
- void callback(Timer timer),
- bool repeating);
+typedef Timer _TimerFactoryClosure(
+ int milliseconds, void callback(Timer timer), bool repeating);
// Warning: Dartium sets _TimerFactory._factory instead of setting things up
// through VMLibraryHooks.timerFactory.
« no previous file with comments | « runtime/lib/timer_impl.dart ('k') | runtime/lib/type_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698