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

Unified Diff: pkg/polymer/lib/src/file_system/console.dart

Issue 22909059: Some more removals of dart:utf. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change ArgumentError to FormatException. Created 7 years, 4 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: pkg/polymer/lib/src/file_system/console.dart
diff --git a/pkg/polymer/lib/src/file_system/console.dart b/pkg/polymer/lib/src/file_system/console.dart
index 6776745b2fe96334b4f05512f7ca32f9e528a98d..e928cf9affe2dc1b19cde38bc4645558555181a4 100644
--- a/pkg/polymer/lib/src/file_system/console.dart
+++ b/pkg/polymer/lib/src/file_system/console.dart
@@ -4,9 +4,8 @@
library console;
-import 'dart:async';
+import 'dart:convert';
import 'dart:io';
-import 'dart:utf';
import 'package:polymer/src/file_system.dart';
/** File system implementation for console VM (i.e. no browser). */
@@ -42,6 +41,6 @@ class ConsoleFileSystem implements FileSystem {
// TODO(jmesserly): do we support any encoding other than UTF-8 for Dart?
Future<String> readText(String path) {
- return readTextOrBytes(path).then(decodeUtf8);
+ return readTextOrBytes(path).then(UTF8.decode);
}
}

Powered by Google App Engine
This is Rietveld 408576698