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

Unified Diff: runtime/lib/timer_patch.dart

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (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 e5f7b06e624acfbdd37578135dd7e7bb968689c2..249a81afb7f2b19eec59a6756931e066b2523112 100644
--- a/runtime/lib/timer_patch.dart
+++ b/runtime/lib/timer_patch.dart
@@ -4,10 +4,8 @@
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;
@@ -17,14 +15,11 @@ class Timer {
}
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;
@@ -38,8 +33,9 @@ class Timer {
}
}
-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