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

Unified Diff: runtime/bin/platform_android.cc

Issue 11558012: Use FormatMessageW for Windows error messages to handle internationalized messages correctly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years 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/platform.h ('k') | runtime/bin/platform_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_android.cc
diff --git a/runtime/bin/platform_android.cc b/runtime/bin/platform_android.cc
index 206eca3227e9bd369b4145ae07992354d51de4a7..a05de342d8f87ba8c09cb5b31fcc44c1616aaf44 100644
--- a/runtime/bin/platform_android.cc
+++ b/runtime/bin/platform_android.cc
@@ -65,12 +65,3 @@ char** Platform::Environment(intptr_t* count) {
void Platform::FreeEnvironment(char** env, intptr_t count) {
delete[] env;
}
-
-
-char* Platform::StrError(int error_code) {
- static const int kBufferSize = 1024;
- char* error = static_cast<char*>(malloc(kBufferSize));
- error[0] = '\0';
- strerror_r(error_code, error, kBufferSize);
- return error;
-}
« no previous file with comments | « runtime/bin/platform.h ('k') | runtime/bin/platform_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698