Commit f05b09a5 authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

Do not present popup menu if one is already shown

This CL avoid presenting a popup menu is there is already one shown.
This can be done by pressing simultaneously on two buttons.

Bug: 850057
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I3e501235c3527217e9f354277e09bc353430b95b
Reviewed-on: https://chromium-review.googlesource.com/1104694Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568385}
parent f24ba3c1
......@@ -162,7 +162,9 @@ PopupMenuCommandType CommandTypeFromPopupType(PopupMenuType type) {
// |guideName|.
- (void)presentPopupOfType:(PopupMenuType)type
fromNamedGuide:(GuideName*)guideName {
DCHECK(!self.presenter);
if (self.presenter)
[self dismissPopupMenuAnimated:YES];
id<BrowserCommands> callableDispatcher =
static_cast<id<BrowserCommands>>(self.dispatcher);
[callableDispatcher
......
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