| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 } | 183 } |
| 184 } else if (strstr(message, "gtk_widget_size_allocate(): attempt to " | 184 } else if (strstr(message, "gtk_widget_size_allocate(): attempt to " |
| 185 "allocate widget with width") && | 185 "allocate widget with width") && |
| 186 !GTK_CHECK_VERSION(2, 16, 1)) { | 186 !GTK_CHECK_VERSION(2, 16, 1)) { |
| 187 // This warning only occurs in obsolete versions of GTK and is harmless. | 187 // This warning only occurs in obsolete versions of GTK and is harmless. |
| 188 // http://crbug.com/11133 | 188 // http://crbug.com/11133 |
| 189 } else if (strstr(message, "Theme file for default has no") || | 189 } else if (strstr(message, "Theme file for default has no") || |
| 190 strstr(message, "Theme directory") || | 190 strstr(message, "Theme directory") || |
| 191 strstr(message, "theme pixmap")) { | 191 strstr(message, "theme pixmap")) { |
| 192 LOG(ERROR) << "GTK theme error: " << message; | 192 LOG(ERROR) << "GTK theme error: " << message; |
| 193 } else if (strstr(message, "gtk_drag_dest_leave: assertion")) { |
| 194 LOG(ERROR) << "Drag destination deleted: http://crbug.com/18557"; |
| 193 } else { | 195 } else { |
| 194 #ifdef NDEBUG | 196 #ifdef NDEBUG |
| 195 LOG(ERROR) << log_domain << ": " << message; | 197 LOG(ERROR) << log_domain << ": " << message; |
| 196 #else | 198 #else |
| 197 LOG(FATAL) << log_domain << ": " << message; | 199 LOG(FATAL) << log_domain << ": " << message; |
| 198 #endif | 200 #endif |
| 199 } | 201 } |
| 200 } | 202 } |
| 201 | 203 |
| 202 static void SetUpGLibLogHandler() { | 204 static void SetUpGLibLogHandler() { |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 | 576 |
| 575 logging::CleanupChromeLogging(); | 577 logging::CleanupChromeLogging(); |
| 576 | 578 |
| 577 #if defined(OS_MACOSX) && defined(GOOGLE_CHROME_BUILD) | 579 #if defined(OS_MACOSX) && defined(GOOGLE_CHROME_BUILD) |
| 578 // TODO(mark): See the TODO(mark) above at InitCrashReporter. | 580 // TODO(mark): See the TODO(mark) above at InitCrashReporter. |
| 579 DestructCrashReporter(); | 581 DestructCrashReporter(); |
| 580 #endif // OS_MACOSX && GOOGLE_CHROME_BUILD | 582 #endif // OS_MACOSX && GOOGLE_CHROME_BUILD |
| 581 | 583 |
| 582 return rv; | 584 return rv; |
| 583 } | 585 } |
| OLD | NEW |