Commit ac724d82 authored by Devon Carew's avatar Devon Carew

Merge pull request #1623 from devoncarew/remove_service_extension

remove no longer needed code from the service protocol extensions
parents f423951c 68fa1a63
...@@ -87,29 +87,13 @@ void initServiceExtensions() { ...@@ -87,29 +87,13 @@ void initServiceExtensions() {
_extensionsInitialized = true; _extensionsInitialized = true;
assert(() { assert(() {
developer.registerExtension('flutter', _flutter);
developer.registerExtension('flutter.debugPaint', _debugPaint); developer.registerExtension('flutter.debugPaint', _debugPaint);
developer.registerExtension('flutter.timeDilation', _timeDilation); developer.registerExtension('flutter.timeDilation', _timeDilation);
// Emit an info level log message; this tells the debugger that the Flutter
// service extensions are registered.
developer.log('Flutter initialized', name: 'flutter', level: 800);
return true; return true;
}); });
} }
/// Just respond to the request. Clients can use the existence of this call to
/// know that the debug client is a Flutter app.
Future<developer.ServiceExtensionResponse> _flutter(String method, Map<String, String> parameters) {
return new Future<developer.ServiceExtensionResponse>.value(
new developer.ServiceExtensionResponse.result(JSON.encode({
'type': '_extensionType',
'method': method
}))
);
}
/// Toggle the [debugPaintSizeEnabled] setting. /// Toggle the [debugPaintSizeEnabled] setting.
Future<developer.ServiceExtensionResponse> _debugPaint(String method, Map<String, String> parameters) { Future<developer.ServiceExtensionResponse> _debugPaint(String method, Map<String, String> parameters) {
if (parameters.containsKey('enabled')) { if (parameters.containsKey('enabled')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment