Commit dec7d06f authored by Mike Dougherty's avatar Mike Dougherty Committed by Commit Bot

Reset |_contextMenuNeedsDisplay| when context menu is displayed.

This boolean needs to be reset in order to prevent an extra |Cancel| hit
for the ContextMenu.DelayedElementDetails metric.

Bug: None
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I271a8d4ca58b854b92c1b09d8a8346f0f00d65a4
Reviewed-on: https://chromium-review.googlesource.com/1159600Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Commit-Queue: Mike Dougherty <michaeldo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580269}
parent d5e474c4
...@@ -383,6 +383,7 @@ struct ContextMenuInfo { ...@@ -383,6 +383,7 @@ struct ContextMenuInfo {
- (void)setDOMElementForLastTouch:(NSDictionary*)element { - (void)setDOMElementForLastTouch:(NSDictionary*)element {
_contextMenuInfoForLastTouch.dom_element = [element copy]; _contextMenuInfoForLastTouch.dom_element = [element copy];
if (_contextMenuNeedsDisplay) { if (_contextMenuNeedsDisplay) {
_contextMenuNeedsDisplay = NO;
UMA_HISTOGRAM_ENUMERATION(kContextMenuDelayedElementDetailsHistogram, UMA_HISTOGRAM_ENUMERATION(kContextMenuDelayedElementDetailsHistogram,
DelayedElementDetailsState::Show); DelayedElementDetailsState::Show);
[self processReceivedDOMElement]; [self processReceivedDOMElement];
......
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