Commit 8b9e8d6a authored by Roberto Moura's avatar Roberto Moura Committed by Commit Bot

Fix "Crash after closing last tab twice" bug.

Call |contentWillAppearAnimated| on the tab grid view controller before
dispatch_async.

Bug: 1134718, 1134062
Change-Id: Id8c61f596bdf69371f9b126e671d621eac54dbd8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2449349Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Commit-Queue: Roberto Moura <mouraroberto@google.com>
Auto-Submit: Roberto Moura <mouraroberto@google.com>
Cr-Commit-Position: refs/heads/master@{#814596}
parent dcd069f5
...@@ -186,8 +186,8 @@ ...@@ -186,8 +186,8 @@
// This is done with a dispatch to make sure that the view isn't added to // This is done with a dispatch to make sure that the view isn't added to
// the view hierarchy right away, as it is not the expectations of the // the view hierarchy right away, as it is not the expectations of the
// API. // API.
[self.baseViewController contentWillAppearAnimated:animated];
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
[self.baseViewController contentWillAppearAnimated:animated];
self.baseViewController.childViewControllerForStatusBarStyle = nil; self.baseViewController.childViewControllerForStatusBarStyle = nil;
self.transitionHandler = [[TabGridTransitionHandler alloc] self.transitionHandler = [[TabGridTransitionHandler alloc]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment