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

Unified Diff: runtime/bin/main.cc

Issue 10332109: Make the crypto library an official dart:crypto library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix long line Created 8 years, 7 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 | « runtime/bin/gen_snapshot.cc ('k') | tests/lib/crypto/hmac_md5_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index d9a0c379f02c6513d8794f21d98de4bd68ef7f38..a4c3f233f9b64e5f907d1751ed1f1beb02c77c49 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -335,7 +335,9 @@ static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag,
if (is_dart_scheme_url) {
ASSERT(tag == kImportTag);
// Handle imports of other built-in libraries present in the SDK.
- if (DartUtils::IsDartIOLibURL(url_string)) {
+ if (DartUtils::IsDartCryptoLibURL(url_string)) {
+ return Builtin::LoadLibrary(Builtin::kCryptoLibrary);
+ } else if (DartUtils::IsDartIOLibURL(url_string)) {
return Builtin::LoadLibrary(Builtin::kIOLibrary);
} else if (DartUtils::IsDartJsonLibURL(url_string)) {
return Builtin::LoadLibrary(Builtin::kJsonLibrary);
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | tests/lib/crypto/hmac_md5_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698