diff --git a/ios/chrome/browser/ui/popup_menu/popup_menu_help_coordinator.mm b/ios/chrome/browser/ui/popup_menu/popup_menu_help_coordinator.mm index 4e27db005cc514..dc8ad6a4056fe8 100644 --- a/ios/chrome/browser/ui/popup_menu/popup_menu_help_coordinator.mm +++ b/ios/chrome/browser/ui/popup_menu/popup_menu_help_coordinator.mm @@ -29,12 +29,6 @@ #error "This file requires ARC support." #endif -namespace { -// Delay between the time the app launches, and the time the -// menu button tip is shown. -constexpr base::TimeDelta kMenuTipDelay = base::Seconds(1); -} // namespace - @interface PopupMenuHelpCoordinator () // Bubble view controller presenter for popup menu tip. @@ -181,6 +175,7 @@ - (void)showPopupMenuBubbleIfNecessary { } [weakSelf showPopupMenuBubbleIfNecessary]; })); + return; } // Skip if a presentation is already in progress @@ -214,22 +209,12 @@ - (void)showPopupMenuBubbleIfNecessary { // Present the bubble after the delay. self.popupMenuBubblePresenter = bubblePresenter; - __weak __typeof(self) weakSelf = self; - base::SequencedTaskRunner::GetCurrentDefault()->PostDelayedTask( - FROM_HERE, base::BindOnce(^{ - [weakSelf presentPopupMenuBubbleAtAnchorPoint:anchorPoint]; - [weakSelf.UIUpdater updateUIForIPHDisplayed:PopupMenuTypeToolsMenu]; - }), - kMenuTipDelay); -} - -// Actually presents the bubble. -- (void)presentPopupMenuBubbleAtAnchorPoint:(CGPoint)anchorPoint { self.inSessionWithPopupMenuIPH = YES; [self.popupMenuBubblePresenter presentInViewController:self.baseViewController view:self.baseViewController.view anchorPoint:anchorPoint]; + [self.UIUpdater updateUIForIPHDisplayed:PopupMenuTypeToolsMenu]; } #pragma mark - Overflow Menu Bubble methods