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

Unified Diff: chrome/browser/chrome_browser_application_mac.mm

Issue 7826016: [Mac] Enable CrZombie for all processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
Index: chrome/browser/chrome_browser_application_mac.mm
diff --git a/chrome/browser/chrome_browser_application_mac.mm b/chrome/browser/chrome_browser_application_mac.mm
index 9394767788b26609101f9eb20d7a290e417f1d8b..e81ce1a3bb271a91495016fc9f2a9bd28b1e10f5 100644
--- a/chrome/browser/chrome_browser_application_mac.mm
+++ b/chrome/browser/chrome_browser_application_mac.mm
@@ -12,11 +12,11 @@
#import "chrome/app/breakpad_mac.h"
#import "chrome/browser/app_controller_mac.h"
#include "chrome/browser/ui/browser_list.h"
-#import "chrome/browser/ui/cocoa/objc_method_swizzle.h"
-#import "chrome/browser/ui/cocoa/objc_zombie.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "content/browser/accessibility/browser_accessibility_state.h"
#include "content/browser/renderer_host/render_view_host.h"
+#import "chrome/common/mac/objc_method_swizzle.h"
Mark Mentovai 2011/09/01 22:07:26 Sort: chrome < content.
Scott Hess - ex-Googler 2011/09/01 23:31:57 Done. I looked right past that distinction. Woul
Mark Mentovai 2011/09/01 23:55:23 shess wrote:
+#import "chrome/common/mac/objc_zombie.h"
// The implementation of NSExceptions break various assumptions in the
// Chrome code. This category defines a replacement for
@@ -210,7 +210,7 @@ void SwizzleInit() {
+ (void)initialize {
// Turn all deallocated Objective-C objects into zombies, keeping
// the most recent 10,000 of them on the treadmill.
- ObjcEvilDoers::ZombieEnable(YES, 10000);
+ ObjcEvilDoers::ZombieEnable(true, 10000);
Mark Mentovai 2011/09/01 22:07:26 This uses that swap loop, right? Over all of the o
Scott Hess - ex-Googler 2011/09/01 23:31:57 I think I had originally coded up an alternative w
Mark Mentovai 2011/09/01 23:55:23 shess wrote:
}
- (id)init {

Powered by Google App Engine
This is Rietveld 408576698