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

Unified Diff: runtime/vm/os_android.cc

Issue 11416343: Refactored Android samples / embedder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix type error on playBackground 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/embedders/android/support_android.cc ('k') | samples/android_embedder/android_embedder.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_android.cc
diff --git a/runtime/vm/os_android.cc b/runtime/vm/os_android.cc
index c7bfcbcce6f185f1725687776eef9616b7109715..38c67cd1600d22b5e23e7f595e191d8e09e297c0 100644
--- a/runtime/vm/os_android.cc
+++ b/runtime/vm/os_android.cc
@@ -4,6 +4,7 @@
#include "vm/os.h"
+#include <android/log.h>
#include <errno.h>
#include <limits.h>
#include <malloc.h>
@@ -152,6 +153,8 @@ void OS::Print(const char* format, ...) {
va_list args;
va_start(args, format);
VFPrint(stdout, format, args);
+ // Forward to the Android log for remote access.
+ __android_log_vprint(ANDROID_LOG_INFO, "DartVM", format, args);
va_end(args);
}
@@ -203,6 +206,8 @@ void OS::PrintErr(const char* format, ...) {
va_list args;
va_start(args, format);
VFPrint(stderr, format, args);
+ // Forward to the Android log for remote access.
+ __android_log_vprint(ANDROID_LOG_ERROR, "DartVM", format, args);
va_end(args);
}
« no previous file with comments | « runtime/embedders/android/support_android.cc ('k') | samples/android_embedder/android_embedder.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698