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

Unified Diff: runtime/bin/dartutils.cc

Issue 9773037: Make the temporary OSError allocation method private. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « runtime/bin/common.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dartutils.cc
diff --git a/runtime/bin/dartutils.cc b/runtime/bin/dartutils.cc
index baeb8c5ff0a240919767cc3667d74e02ee093d49..99e8f05a997193b293ff50e02deccc7a90bbfee1 100644
--- a/runtime/bin/dartutils.cc
+++ b/runtime/bin/dartutils.cc
@@ -291,16 +291,14 @@ Dart_Handle DartUtils::NewDartOSError(OSError* os_error) {
if (Dart_IsError(url)) return url;
Dart_Handle lib = Dart_LookupLibrary(url);
if (Dart_IsError(lib)) return lib;
- Dart_Handle cls = Dart_NewString("IOUtils");
- if (Dart_IsError(cls)) return cls;
- Dart_Handle method = Dart_NewString("makeOSError");
- if (Dart_IsError(method)) return method;
+ Dart_Handle function_name = Dart_NewString("_makeOSError");
+ if (Dart_IsError(function_name)) return function_name;
Dart_Handle args[2];
args[0] = Dart_NewString(os_error->message());
if (Dart_IsError(args[0])) return args[0];
args[1] = Dart_NewInteger(os_error->code());
if (Dart_IsError(args[1])) return args[1];
- Dart_Handle err = Dart_InvokeStatic(lib, cls, method, 2, args);
+ Dart_Handle err = Dart_Invoke(lib, function_name, 2, args);
return err;
}
« no previous file with comments | « runtime/bin/common.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698