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

Unified Diff: sdk/lib/_internal/js_runtime/lib/core_patch.dart

Issue 1381033002: Add data-URI support class to dart:core (next to Uri). (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add more tests, refactor, rename to DataUriHelper. Need better name! Created 5 years, 2 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: sdk/lib/_internal/js_runtime/lib/core_patch.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/core_patch.dart b/sdk/lib/_internal/js_runtime/lib/core_patch.dart
index 7d6ad7c244533fc8af009361b01a016c19aae16b..ec7135529ae5132979713eae31feb41c477339f5 100644
--- a/sdk/lib/_internal/js_runtime/lib/core_patch.dart
+++ b/sdk/lib/_internal/js_runtime/lib/core_patch.dart
@@ -517,19 +517,6 @@ class NoSuchMethodError {
}
@patch
-class Uri {
- @patch
- static bool get _isWindows => false;
-
- @patch
- static Uri get base {
- String uri = Primitives.currentUri();
- if (uri != null) return Uri.parse(uri);
- throw new UnsupportedError("'Uri.base' is not supported");
- }
-}
-
-@patch
class Resource {
@patch
const factory Resource(String uri) = _Resource;

Powered by Google App Engine
This is Rietveld 408576698