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

Unified Diff: runtime/bin/main.cc

Issue 12794002: Move Options to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « pkg/scheduled_test/test/metatest.dart ('k') | sdk/lib/core/core.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 4ccc87a1a1ed452f6064c5dbf9d346ac3fd68041..18db50de7b3a117b8628276ba625209bcb6c8bfe 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -379,13 +379,13 @@ static Dart_Handle SetupRuntimeOptions(CommandLineOptions* options,
return result;
}
}
- Dart_Handle core_lib_url = DartUtils::NewString("dart:core");
- if (Dart_IsError(core_lib_url)) {
- return core_lib_url;
+ Dart_Handle io_lib_url = DartUtils::NewString("dart:io");
+ if (Dart_IsError(io_lib_url)) {
+ return io_lib_url;
}
- Dart_Handle core_lib = Dart_LookupLibrary(core_lib_url);
- if (Dart_IsError(core_lib)) {
- return core_lib;
+ Dart_Handle io_lib = Dart_LookupLibrary(io_lib_url);
+ if (Dart_IsError(io_lib)) {
+ return io_lib;
}
Dart_Handle runtime_options_class_name =
DartUtils::NewString("_OptionsImpl");
@@ -393,7 +393,7 @@ static Dart_Handle SetupRuntimeOptions(CommandLineOptions* options,
return runtime_options_class_name;
}
Dart_Handle runtime_options_class = Dart_GetClass(
- core_lib, runtime_options_class_name);
+ io_lib, runtime_options_class_name);
if (Dart_IsError(runtime_options_class)) {
return runtime_options_class;
}
« no previous file with comments | « pkg/scheduled_test/test/metatest.dart ('k') | sdk/lib/core/core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698