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

Unified Diff: runtime/bin/extensions.cc

Issue 11308170: Deal with extension loading from packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/extensions.cc
diff --git a/runtime/bin/extensions.cc b/runtime/bin/extensions.cc
index 244a63109f199d50da7e67b3795bd0dd87ca0878..76d7e8867376170e1452262f093a97806cd19b91 100644
--- a/runtime/bin/extensions.cc
+++ b/runtime/bin/extensions.cc
@@ -15,10 +15,7 @@
Dart_Handle Extensions::LoadExtension(const char* extension_url,
Dart_Handle parent_library) {
char* library_path = strdup(extension_url);
- if (!library_path || !File::IsAbsolutePath(library_path)) {
- free(library_path);
- return Dart_Error("unexpected error in library path");
- }
+
Bill Hesse 2012/11/22 16:18:41 Do we really want unchecked malloc (strdup) to go
Mads Ager (google) 2012/11/23 07:07:40 It would be nicer to deal with it although in gene
// Extract the path and the extension name from the url.
char* last_path_separator = strrchr(library_path, '/');
char* extension_name = last_path_separator + 1;
« no previous file with comments | « runtime/bin/builtin.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698