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

Unified Diff: runtime/observatory/lib/service_io.dart

Issue 2345023003: Use dartfmt on Observatory code (Closed)
Patch Set: merge Created 4 years, 3 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/service_io.dart
diff --git a/runtime/observatory/lib/service_io.dart b/runtime/observatory/lib/service_io.dart
index 2a91426b5f16c70dfcc57eddda6bce1ebf848a03..63857cbda83d94d0aa814f68e9cbc39f5e11b298 100644
--- a/runtime/observatory/lib/service_io.dart
+++ b/runtime/observatory/lib/service_io.dart
@@ -17,15 +17,11 @@ export 'package:observatory/service_common.dart';
class _IOWebSocket implements CommonWebSocket {
WebSocket _webSocket;
- void connect(String address,
- void onOpen(),
- void onMessage(dynamic data),
- void onError(),
- void onClose()) {
+ void connect(String address, void onOpen(), void onMessage(dynamic data),
+ void onError(), void onClose()) {
WebSocket.connect(address).then((WebSocket socket) {
_webSocket = socket;
- _webSocket.listen(
- onMessage,
+ _webSocket.listen(onMessage,
onError: (dynamic) => onError(),
onDone: onClose,
cancelOnError: true);
@@ -52,9 +48,7 @@ class _IOWebSocket implements CommonWebSocket {
assert(data is Uint8List);
Logger.root.info('Binary data size in bytes: ${data.lengthInBytes}');
return new Future.sync(() =>
- new ByteData.view(data.buffer,
- data.offsetInBytes,
- data.lengthInBytes));
+ new ByteData.view(data.buffer, data.offsetInBytes, data.lengthInBytes));
}
}
« no previous file with comments | « runtime/observatory/lib/service_html.dart ('k') | runtime/observatory/lib/src/allocation_profile/allocation_profile.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698