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

Unified Diff: base/debug/stack_trace_android.cc

Issue 1644753002: Make base work on iOS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase Created 4 years, 11 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 | « base/debug/BUILD.gn ('k') | base/logging.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/stack_trace_android.cc
diff --git a/base/debug/stack_trace_android.cc b/base/debug/stack_trace_android.cc
index 5168b188da2f683a1ae50c830fbfdb57421a69e2..e05e30c82ec4a10b9401f2f099519a352296d228 100644
--- a/base/debug/stack_trace_android.cc
+++ b/base/debug/stack_trace_android.cc
@@ -74,7 +74,7 @@ StackTrace::StackTrace() {
void StackTrace::Print() const {
std::string backtrace = ToString();
- __android_log_write(ANDROID_LOG_ERROR, "chromium", backtrace.c_str());
+ __android_log_write(ANDROID_LOG_ERROR, ANDROID_LOG_TAG, backtrace.c_str());
}
// NOTE: Native libraries in APKs are stripped before installing. Print out the
@@ -91,10 +91,10 @@ void StackTrace::OutputToStream(std::ostream* os) const {
base::ThreadRestrictions::ScopedAllowIO allow_io;
if (!ReadProcMaps(&proc_maps)) {
__android_log_write(
- ANDROID_LOG_ERROR, "chromium", "Failed to read /proc/self/maps");
+ ANDROID_LOG_ERROR, ANDROID_LOG_TAG, "Failed to read /proc/self/maps");
} else if (!ParseProcMaps(proc_maps, &regions)) {
__android_log_write(
- ANDROID_LOG_ERROR, "chromium", "Failed to parse /proc/self/maps");
+ ANDROID_LOG_ERROR, ANDROID_LOG_TAG, "Failed to parse /proc/self/maps");
}
for (size_t i = 0; i < count_; ++i) {
« no previous file with comments | « base/debug/BUILD.gn ('k') | base/logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698