• erikchen's avatar
    Fix extension browsertests to correctly use ShellCrApplication. · b1681c58
    erikchen authored
    If NSApp is used prior to instantiation of the NSApplication subclass, then the
    subclass will never be instantiated.
    
    This CL adds a CHECK to confirm that the subclass is correctly instantiated.
    
    This CL found several tests which were unnecessarily instantiating a UI Message
    Loop early in the lifetime gtest subclass, which ends up calling NSApp prior to
    NSApplication subclass instantiation.
    
    Change-Id: I8868d253b6ec6eff4f8ecdda3176d839aa1826a5
    Reviewed-on: https://chromium-review.googlesource.com/1246861Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
    Commit-Queue: Erik Chen <erikchen@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#594436}
    b1681c58
shell_main_delegate_mac.mm 764 Bytes