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

Unified Diff: runtime/bin/builtin.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/builtin.h ('k') | runtime/bin/builtin_nolib.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.cc
diff --git a/runtime/bin/builtin.cc b/runtime/bin/builtin.cc
index 558dc9add546a76cfe75750052e4915a9367d782..33745defab1c58f8f6791b379c218e6a0316f879 100644
--- a/runtime/bin/builtin.cc
+++ b/runtime/bin/builtin.cc
@@ -24,6 +24,9 @@ Dart_Handle Builtin::Source(BuiltinLibraryId id) {
case kBuiltinLibrary:
source = Dart_NewString(Builtin::builtin_source_);
break;
+ case kCryptoLibrary:
+ source = Dart_NewString(Builtin::crypto_source_);
+ break;
case kIOLibrary:
source = Dart_NewString(Builtin::io_source_);
break;
@@ -44,7 +47,10 @@ Dart_Handle Builtin::Source(BuiltinLibraryId id) {
void Builtin::SetupLibrary(Dart_Handle library, BuiltinLibraryId id) {
- if ((id == kJsonLibrary) || (id == kUriLibrary) || (id == kUtfLibrary)) {
+ if ((id == kCryptoLibrary) ||
+ (id == kJsonLibrary) ||
+ (id == kUriLibrary) ||
+ (id == kUtfLibrary)) {
// No native resolver for these pure Dart libraries.
return;
} else if (id == kBuiltinLibrary) {
@@ -64,6 +70,9 @@ Dart_Handle Builtin::LoadLibrary(BuiltinLibraryId id) {
case kBuiltinLibrary:
url = Dart_NewString(DartUtils::kBuiltinLibURL);
break;
+ case kCryptoLibrary:
+ url = Dart_NewString(DartUtils::kCryptoLibURL);
+ break;
case kIOLibrary:
url = Dart_NewString(DartUtils::kIOLibURL);
break;
« no previous file with comments | « runtime/bin/builtin.h ('k') | runtime/bin/builtin_nolib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698