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

Unified Diff: runtime/bin/file.cc

Issue 11318018: - Represent strings internally in UTF-16 format, this makes it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
Index: runtime/bin/file.cc
===================================================================
--- runtime/bin/file.cc (revision 14314)
+++ runtime/bin/file.cc (working copy)
@@ -411,7 +411,7 @@
char* path = File::GetContainingDirectory(str_copy);
free(str_copy);
if (path != NULL) {
- Dart_SetReturnValue(args, Dart_NewString(path));
+ Dart_SetReturnValue(args, DartUtils::NewString(path));
free(path);
} else {
Dart_Handle err = DartUtils::NewDartOSError();
@@ -428,7 +428,7 @@
DartUtils::GetStringValue(Dart_GetNativeArgument(args, 0));
char* path = File::GetCanonicalPath(str);
if (path != NULL) {
- Dart_SetReturnValue(args, Dart_NewString(path));
+ Dart_SetReturnValue(args, DartUtils::NewString(path));
free(path);
} else {
Dart_Handle err = DartUtils::NewDartOSError();

Powered by Google App Engine
This is Rietveld 408576698