Commit 1013bf59 authored by Mark Cogan's avatar Mark Cogan Committed by Commit Bot

[iOS] Remove one tab model observer helper method from BVC.

The CL removes a method that was functionally a no-op.

Change-Id: I721a3f573253df4728dd9cc18ff484c56b52488a
Reviewed-on: https://chromium-review.googlesource.com/c/1317860
Commit-Queue: Mark Cogan <marq@chromium.org>
Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606043}
parent 04ca40fa
......@@ -4924,13 +4924,12 @@ applicationCommandEndpoint:(id<ApplicationCommands>)applicationCommandEndpoint {
}
};
self.inNewTabAnimation = YES;
if (!background) {
[self animateNewTab:tab
inForegroundWithCompletion:startVoiceSearchIfNecessary];
if (background) {
self.inNewTabAnimation = NO;
} else {
self.inNewTabAnimation = YES;
[self animateNewTab:tab
inBackgroundWithCompletion:startVoiceSearchIfNecessary];
inForegroundWithCompletion:startVoiceSearchIfNecessary];
}
}
......@@ -5112,11 +5111,6 @@ applicationCommandEndpoint:(id<ApplicationCommands>)applicationCommandEndpoint {
toTabGridButtonWithCompletion:completionBlock];
}
- (void)animateNewTab:(Tab*)tab
inBackgroundWithCompletion:(ProceduralBlock)completion {
self.inNewTabAnimation = NO;
}
#pragma mark - InfobarPositioner
- (UIView*)parentView {
......
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