| Index: base/test/test_support_ios.mm
|
| diff --git a/base/test/test_support_ios.mm b/base/test/test_support_ios.mm
|
| index 3b31da610b4ed08acc452c96e4377c3052ca0164..9e8261200c23d02374f8df5ddf0c1f1c7257d93d 100644
|
| --- a/base/test/test_support_ios.mm
|
| +++ b/base/test/test_support_ios.mm
|
| @@ -80,6 +80,10 @@ static char** g_argv;
|
| label.textAlignment = NSTextAlignmentCenter;
|
| [window_ addSubview:label];
|
|
|
| + // An NSInternalInconsistencyException is thrown if the app doesn't have a
|
| + // root view controller. Set an empty one here.
|
| + [window_ setRootViewController:[[[UIViewController alloc] init] autorelease]];
|
| +
|
| if ([self shouldRedirectOutputToFile])
|
| [self redirectOutput];
|
|
|
|
|