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

Unified Diff: chrome/common/mac/objc_zombie.mm

Issue 635623003: Cleanup: Better constify some strings in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac Created 6 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
« no previous file with comments | « chrome/common/mac/mock_launchd.cc ('k') | chrome/common/service_process_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/mac/objc_zombie.mm
diff --git a/chrome/common/mac/objc_zombie.mm b/chrome/common/mac/objc_zombie.mm
index b86999380505d1de37f234a7f52c792c73192db2..7fb9aee10a5b0c3d37542d1f9065c6279bbf3c75 100644
--- a/chrome/common/mac/objc_zombie.mm
+++ b/chrome/common/mac/objc_zombie.mm
@@ -175,7 +175,7 @@ BOOL GetZombieRecord(id object, ZombieRecord* record) {
// easy to use DCHECK to dump only in debug builds.
BOOL DumpDeallocTrace(const void* const* array, int size) {
// Async-signal safe version of fputs, consistent with StackTrace::Print().
- const char* message = "Backtrace from -dealloc:\n";
+ const char message[] = "Backtrace from -dealloc:\n";
ignore_result(HANDLE_EINTR(write(STDERR_FILENO, message, strlen(message))));
base::debug::StackTrace(array, size).Print();
« no previous file with comments | « chrome/common/mac/mock_launchd.cc ('k') | chrome/common/service_process_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698