• Trent Apted's avatar
    MacViews: Fix Translate Bubble Anchoring · 26200f55
    Trent Apted authored
    Currently translate _bubble_ tests on Mac (not the info bar tests)
    fail with a DCHECK because the translate bubble does not currently
    anchor properly under MacViews. To Anchor properly the bubble needs
    a parent window set before calling Widget::Show().
    
    Fix that, and expand test coverage on Mac to include tests for the
    bubble.
    
    Note the translate bubble is not enabled by default on Mac (m65 will
    continue to use infobars).
    
    Enables on Mac:
     - AutofillInteractiveTest.AutofillAfterTranslate
     - TranslateBubbleViewBrowserTest.* (3 tests)
    
    Bug: 781134, 795987, 507442
    Change-Id: I27f8489ad84eb90997ad6f319b178942a07a7a51
    Reviewed-on: https://chromium-review.googlesource.com/752783Reviewed-by: default avatarMichael Martis <martis@chromium.org>
    Reviewed-by: default avatarMathieu Perreault <mathp@chromium.org>
    Commit-Queue: Trent Apted <tapted@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#525201}
    26200f55
autofill_interactive_uitest.cc 73.3 KB