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

Unified Diff: runtime/bin/builtin.dart

Issue 1028453002: Support percent encoded data URIs in the standalone embedder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add negative tests, make multitest understand data uris, fix test in checked mode Created 5 years, 9 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/bin/vmservice/loader.dart » ('j') | tools/testing/dart/multitest.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.dart
diff --git a/runtime/bin/builtin.dart b/runtime/bin/builtin.dart
index 6f5781518ca49cb0289e439ca394437beefe4d5f..7e31b3c13040d771d1cdda8db1e66b299e94ecba 100644
--- a/runtime/bin/builtin.dart
+++ b/runtime/bin/builtin.dart
@@ -215,6 +215,7 @@ Uri _createUri(String userUri) {
var uri = Uri.parse(userUri);
switch (uri.scheme) {
case '':
+ case 'data':
case 'file':
case 'http':
case 'https':
@@ -349,6 +350,7 @@ String _filePathFromUri(String userUri) {
return uri.toFilePath();
case 'package':
return _filePathFromUri(_resolvePackageUri(uri).toString());
+ case 'data':
case 'http':
case 'https':
return uri.toString();
« no previous file with comments | « no previous file | runtime/bin/vmservice/loader.dart » ('j') | tools/testing/dart/multitest.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698