Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // TODO(port): the ifdefs in here are a first step towards trying to determine | 5 // TODO(port): the ifdefs in here are a first step towards trying to determine |
| 6 // the correct abstraction for all the OS functionality required at this | 6 // the correct abstraction for all the OS functionality required at this |
| 7 // stage of process initialization. It should not be taken as a final | 7 // stage of process initialization. It should not be taken as a final |
| 8 // abstraction. | 8 // abstraction. |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 152 #if defined(OS_LINUX) | 152 #if defined(OS_LINUX) |
| 153 static void GLibLogHandler(const gchar* log_domain, | 153 static void GLibLogHandler(const gchar* log_domain, |
| 154 GLogLevelFlags log_level, | 154 GLogLevelFlags log_level, |
| 155 const gchar* message, | 155 const gchar* message, |
| 156 gpointer userdata) { | 156 gpointer userdata) { |
| 157 if (!log_domain) | 157 if (!log_domain) |
| 158 log_domain = "<unknown>"; | 158 log_domain = "<unknown>"; |
| 159 if (!message) | 159 if (!message) |
| 160 message = "<no message>"; | 160 message = "<no message>"; |
| 161 | 161 |
| 162 // http://code.google.com/p/chromium/issues/detail?id=9643 | 162 // http://crbug.com/9643 |
|
Evan Martin
2009/04/28 21:13:16
I think the other (original) URL style is better h
Evan Stade
2009/04/28 21:23:51
I don't see why. The short form seems easier to re
| |
| 163 // Until we have a real 64-bit build or all of these 32-bit package issues | 163 // Until we have a real 64-bit build or all of these 32-bit package issues |
| 164 // are sorted out, don't fatal on ELF 32/64-bit mismatch warnings. | 164 // are sorted out, don't fatal on ELF 32/64-bit mismatch warnings. |
| 165 if (strstr(message, "Loading IM context type") || | 165 if (strstr(message, "Loading IM context type") || |
| 166 strstr(message, "wrong ELF class: ELFCLASS64")) { | 166 strstr(message, "wrong ELF class: ELFCLASS64")) { |
| 167 LOG(ERROR) << "Bug 9643: " << log_domain << ": " << message; | 167 LOG(ERROR) << "Bug 9643: " << log_domain << ": " << message; |
| 168 // http://crbug.com/11133 | |
| 169 // gtk_check_version() will return NULL if the current version is >= the | |
|
Evan Martin
2009/04/28 21:39:51
be sure to remove this comment once you use the ma
| |
| 170 // passed version. | |
| 171 } else if (strstr(message, "gtk_widget_size_allocate(): attempt to " | |
| 172 "allocate widget with width") && | |
| 173 gtk_check_version(2, 16, 1)) { | |
|
Evan Martin
2009/04/28 21:13:16
Why not GTK_CHECK_VERSION?
"Returns TRUE if the ve
Evan Stade
2009/04/28 21:23:51
Done.
| |
| 174 LOG(ERROR) << "Bug 11133"; | |
| 168 } else { | 175 } else { |
| 169 LOG(FATAL) << log_domain << ": " << message; | 176 LOG(FATAL) << log_domain << ": " << message; |
| 170 } | 177 } |
| 171 } | 178 } |
| 172 | 179 |
| 173 static void SetUpGLibLogHandler() { | 180 static void SetUpGLibLogHandler() { |
| 174 // Register GLib-handled assertions to go through our logging system. | 181 // Register GLib-handled assertions to go through our logging system. |
| 175 const char* kLogDomains[] = { NULL, "Gtk", "Gdk", "GLib" }; | 182 const char* kLogDomains[] = { NULL, "Gtk", "Gdk", "GLib" }; |
| 176 for (size_t i = 0; i < arraysize(kLogDomains); i++) { | 183 for (size_t i = 0; i < arraysize(kLogDomains); i++) { |
| 177 g_log_set_handler(kLogDomains[i], | 184 g_log_set_handler(kLogDomains[i], |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 469 _CrtDumpMemoryLeaks(); | 476 _CrtDumpMemoryLeaks(); |
| 470 #endif // _CRTDBG_MAP_ALLOC | 477 #endif // _CRTDBG_MAP_ALLOC |
| 471 | 478 |
| 472 _Module.Term(); | 479 _Module.Term(); |
| 473 #endif | 480 #endif |
| 474 | 481 |
| 475 logging::CleanupChromeLogging(); | 482 logging::CleanupChromeLogging(); |
| 476 | 483 |
| 477 return rv; | 484 return rv; |
| 478 } | 485 } |
| OLD | NEW |