| Index: ios/chrome/app/startup/setup_debugging.mm
|
| diff --git a/ios/chrome/app/startup/setup_debugging.mm b/ios/chrome/app/startup/setup_debugging.mm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b54a123d6c0f5f92f869f444fe65bc383e0b0088
|
| --- /dev/null
|
| +++ b/ios/chrome/app/startup/setup_debugging.mm
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ios/chrome/app/startup/setup_debugging.h"
|
| +
|
| +#include "base/logging.h"
|
| +#include "components/crash/core/common/objc_zombie.h"
|
| +
|
| +@implementation SetupDebugging
|
| +
|
| ++ (void)setUpDebuggingOptions {
|
| +// Enable the zombie treadmill on simulator builds.
|
| +// TODO(crbug.com/663390): Consider enabling this on device builds too.
|
| +#if TARGET_IPHONE_SIMULATOR
|
| + DCHECK(ObjcEvilDoers::ZombieEnable(true, 10000));
|
| +#endif
|
| +}
|
| +
|
| +@end
|
|
|