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

Unified Diff: dart/tools/testing/dart/http_server.dart

Issue 23568002: Update checked-in binary to 0.6.21.3_r26639 (M6) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« no previous file with comments | « dart/tools/testing/dart/drt_updater.dart ('k') | dart/tools/testing/dart/legacy_path.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/http_server.dart
diff --git a/dart/tools/testing/dart/http_server.dart b/dart/tools/testing/dart/http_server.dart
index 720350e8d1dde1aa61df8afb19d324bf7092db38..93487632a58e1cc893704d24058799c3009d4dcd 100644
--- a/dart/tools/testing/dart/http_server.dart
+++ b/dart/tools/testing/dart/http_server.dart
@@ -172,12 +172,12 @@ class TestingServers {
"max-age=$_CACHE_EXPIRATION_IN_SECONDS");
var path = _getFilePathFromRequestPath(request.uri.path);
if (path != null) {
- var file = new File.fromPath(path);
+ var file = new File(path.toNativePath());
file.exists().then((exists) {
if (exists) {
_sendFileContent(request, response, allowedPort, path, file);
} else {
- var directory = new Directory.fromPath(path);
+ var directory = new Directory(path.toNativePath());
directory.exists().then((exists) {
if (exists) {
_listDirectory(directory).then((entries) {
« no previous file with comments | « dart/tools/testing/dart/drt_updater.dart ('k') | dart/tools/testing/dart/legacy_path.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698