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

Unified Diff: sky/engine/core/script/dart_loader.cc

Issue 1192743011: Remove support for "mojo:" libraries (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/script/dart_loader.cc
diff --git a/sky/engine/core/script/dart_loader.cc b/sky/engine/core/script/dart_loader.cc
index f6efdb363dcf6bdc1cba3eba81363fe0d569fbe9..fc9d0cd385100eb6d20122565781600b6a23e7a8 100644
--- a/sky/engine/core/script/dart_loader.cc
+++ b/sky/engine/core/script/dart_loader.cc
@@ -27,7 +27,7 @@ Dart_Handle CanonicalizeURL(DartState* state,
Dart_Handle library,
Dart_Handle url) {
String string = StringFromDart(url);
- if (string.startsWith("dart:") || string.startsWith("mojo:"))
+ if (string.startsWith("dart:"))
return url;
// TODO(dart): Figure out how 'package:' should work in sky.
if (string.startsWith("package:")) {
@@ -211,14 +211,6 @@ Dart_Handle DartLoader::HandleLibraryTag(Dart_LibraryTag tag,
return CanonicalizeURL(DartState::Current(), library, url);
if (tag == Dart_kImportTag) {
CHECK(WTF::isMainThread());
-
- String string = StringFromDart(url);
- if (string.startsWith("mojo:")) {
- Dart_Handle mojo_library = Dart_LookupLibrary(url);
- LogIfError(mojo_library);
- return mojo_library;
- }
-
return DOMDartState::Current()->loader().Import(library, url);
}
if (tag == Dart_kSourceTag) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698