| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import "chrome/browser/chrome_browser_application_mac.h" | 5 #import "chrome/browser/chrome_browser_application_mac.h" |
| 6 | 6 |
| 7 #import "base/logging.h" | 7 #import "base/logging.h" |
| 8 #import "base/metrics/histogram.h" | 8 #import "base/metrics/histogram.h" |
| 9 #import "base/scoped_nsobject.h" | 9 #import "base/scoped_nsobject.h" |
| 10 #import "base/sys_string_conversions.h" | 10 #import "base/sys_string_conversions.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 return YES; | 181 return YES; |
| 182 } | 182 } |
| 183 | 183 |
| 184 } // namespace | 184 } // namespace |
| 185 | 185 |
| 186 @implementation BrowserCrApplication | 186 @implementation BrowserCrApplication |
| 187 | 187 |
| 188 + (void)initialize { | 188 + (void)initialize { |
| 189 // Turn all deallocated Objective-C objects into zombies, keeping | 189 // Turn all deallocated Objective-C objects into zombies, keeping |
| 190 // the most recent 10,000 of them on the treadmill. | 190 // the most recent 10,000 of them on the treadmill. |
| 191 // TODO(shess): Convert to a DCHECK() before the next beta channel. | |
| 192 // http://crbug.com/45676 | |
| 193 ObjcEvilDoers::ZombieEnable(YES, 10000); | 191 ObjcEvilDoers::ZombieEnable(YES, 10000); |
| 194 } | 192 } |
| 195 | 193 |
| 196 - init { | 194 - init { |
| 197 CHECK(SwizzleNSExceptionInit()); | 195 CHECK(SwizzleNSExceptionInit()); |
| 198 return [super init]; | 196 return [super init]; |
| 199 } | 197 } |
| 200 | 198 |
| 201 //////////////////////////////////////////////////////////////////////////////// | 199 //////////////////////////////////////////////////////////////////////////////// |
| 202 // HISTORICAL COMMENT (by viettrungluu, from | 200 // HISTORICAL COMMENT (by viettrungluu, from |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 SetCrashKeyValue(kLastExceptionKey, value); | 361 SetCrashKeyValue(kLastExceptionKey, value); |
| 364 } | 362 } |
| 365 | 363 |
| 366 reportingException = NO; | 364 reportingException = NO; |
| 367 } | 365 } |
| 368 | 366 |
| 369 [super reportException:anException]; | 367 [super reportException:anException]; |
| 370 } | 368 } |
| 371 | 369 |
| 372 @end | 370 @end |
| OLD | NEW |