Commit e0f0d40f authored by Sophey Dong's avatar Sophey Dong Committed by Commit Bot

[SendTabToSelf] Fix issue where omnibox self-share icon doesn't show when...

[SendTabToSelf] Fix issue where omnibox self-share icon doesn't show when kSendTabToSelfOmniboxSendingAnimation flag is turned on.

Bug: 1007536
Change-Id: Ib17efb7f120f0d4edaa453de66a830be30f644c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2130816Reviewed-by: default avatarKristi Park <kristipark@chromium.org>
Commit-Queue: Sophey Dong <sophey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#755269}
parent e39eb26e
...@@ -72,8 +72,9 @@ void SendTabToSelfIconView::UpdateImpl() { ...@@ -72,8 +72,9 @@ void SendTabToSelfIconView::UpdateImpl() {
AnimateIn(IDS_BROWSER_SHARING_OMNIBOX_SENDING_LABEL); AnimateIn(IDS_BROWSER_SHARING_OMNIBOX_SENDING_LABEL);
} }
} }
} else if (!GetVisible() && omnibox_view->model()->has_focus() && }
!omnibox_view->model()->user_input_in_progress()) { if (!GetVisible() && omnibox_view->model()->has_focus() &&
!omnibox_view->model()->user_input_in_progress()) {
SendTabToSelfBubbleController* controller = GetController(); SendTabToSelfBubbleController* controller = GetController();
// Shows the "Send" animation once per profile. // Shows the "Send" animation once per profile.
if (controller && !controller->InitialSendAnimationShown() && if (controller && !controller->InitialSendAnimationShown() &&
......
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