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

Unified Diff: runtime/observatory/bin/shell.dart

Issue 892913003: Rename the get* methods in preparation for removing them. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: one more test Created 5 years, 11 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 | « no previous file | runtime/observatory/lib/service_common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/bin/shell.dart
diff --git a/runtime/observatory/bin/shell.dart b/runtime/observatory/bin/shell.dart
index 31067faac5e2df2ad7549f1aac81f4d450ec2f88..ef2459c453187fec93bae91a88494450d049a374 100644
--- a/runtime/observatory/bin/shell.dart
+++ b/runtime/observatory/bin/shell.dart
@@ -19,15 +19,15 @@ import 'dart:io';
void repl(VM vm, String prefix, String lastResult) {
print(lastResult);
- // TODO(koda): Use 'get' when ServiceObjects have more informative toString.
- vm.getString(prefix + stdin.readLineSync()).then((String result) {
+ // TODO(turnidge): use the non-deprecated api here.
+ vm.getStringDeprecated(prefix + stdin.readLineSync()).then((String result) {
repl(vm, prefix, result);
});
}
void main() {
String addr = 'ws://localhost:8181/ws';
- new WebSocketVM(new WebSocketVMTarget(addr)).get('vm').then((VM vm) {
+ new WebSocketVM(new WebSocketVMTarget(addr)).load().then((VM vm) {
Isolate isolate = vm.isolates.first;
String prefix = '${isolate.link}';
repl(vm, prefix, 'prefix $prefix');
« no previous file with comments | « no previous file | runtime/observatory/lib/service_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698