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

Unfocus omnibox when showing context menu on NTP

When the user long press an item on the NTP, a context menu is shown.
The omnibox should be unfocused when this context menu is presented.
It is only necessary to specify it on iPad as showing the alert menu
on iPhone automatically unfocus it.

Bug: 763907
Change-Id: I9d1b8bcf94b64867464ba9ff1ab0a49c423f3a47
Reviewed-on: https://chromium-review.googlesource.com/663342Reviewed-by: default avatarStepan Khapugin <stkhapugin@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#501281}
parent 73f04594
......@@ -637,6 +637,8 @@ BOOL ShouldCellsBeFullWidth(UITraitCollection* collection) {
break;
}
if (IsIPadIdiom())
[self.headerSynchronizer unfocusOmnibox];
}
// Checks if the |section| is empty and add an empty element if it is the case.
......
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