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

Unified Diff: chrome/app/chrome_exe_main_gtk.cc

Issue 660118: Merge the LINUX_TC_MALLOC #define with the existing TC_MALLOC #define.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 | « build/common.gypi ('k') | chrome/browser/memory_purger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_exe_main_gtk.cc
===================================================================
--- chrome/app/chrome_exe_main_gtk.cc (revision 39977)
+++ chrome/app/chrome_exe_main_gtk.cc (working copy)
@@ -17,12 +17,11 @@
extern "C" {
int ChromeMain(int argc, const char** argv);
-#if defined(LINUX_USE_TCMALLOC)
+#if defined(OS_LINUX) && defined(USE_TCMALLOC)
int tc_set_new_mode(int mode);
-#endif // defined(LINUX_USE_TCMALLOC)
-
+#endif // defined(OS_LINUX) && defined(USE_TCMALLOC)
}
int main(int argc, const char** argv) {
@@ -35,7 +34,7 @@
// dependency on TCMalloc. Really, we ought to have our allocator shim code
// implement this EnableTerminationOnOutOfMemory() function. Whateverz. This
// works for now.
-#if defined(LINUX_USE_TCMALLOC)
+#if defined(OS_LINUX) && defined(USE_TCMALLOC)
// For tcmalloc, we need to tell it to behave like new.
tc_set_new_mode(1);
#endif
@@ -45,9 +44,5 @@
// keep it.
// base::AtExitManager exit_manager;
-#if defined(GOOGLE_CHROME_BUILD)
- // TODO(tc): init crash reporter
-#endif
-
return ChromeMain(argc, argv);
}
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/memory_purger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698