Revert "Remove AppShimHandler::Host interface and access AppShimHost directly"
This reverts commit 07670151. Reason for revert: Suspect of introducing consistent failure on Mac12.12 Tests bot. https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Mac10.12%20Tests First failure: https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Mac10.12%20Tests/17211 Sample logs [ RUN ] NativeAppWindowCocoaBrowserTest.HideShowWithAppWithShim [12598:61443:1201/114417.410054:WARNING:notification_platform_bridge_mac.mm(521)] AlertNotificationService: XPC connection invalidated. ../../chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm:198: Failure Actual function call count doesn't match EXPECT_CALL(*mock_host, OnAppUnhideWithoutActivation())... Expected: to be called once Actual: never called - unsatisfied and active Stack trace: 0 browser_tests 0x000000010ca5edbb testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop(int) + 91 1 browser_tests 0x000000010ca5e779 testing::internal::AssertHelper::operator=(testing::Message const&) const + 89 2 browser_tests 0x000000010ca4dd61 testing::internal::GoogleTestFailureReporter::ReportFailure(testing::internal::FailureReporterInterface::FailureType, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 97 3 browser_tests 0x000000010ca52a28 testing::internal::UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked() + 584 4 browser_tests 0x000000010ca53399 testing::Mock::VerifyAndClearExpectationsLocked(void*) + 393 5 browser_tests 0x000000010ca531f1 testing::Mock::VerifyAndClearExpectations(void*) + 33 6 browser_tests 0x000000010c75e4cd NativeAppWindowCocoaBrowserTest_HideShowWithAppWithShim_Test::RunTestOnMainThread() + 3117 7 browser_tests 0x000000010ff002bb content::BrowserTestBase::ProxyRunTestOnMainThreadLoop() + 491 8 browser_tests 0x000000010f944014 ChromeBrowserMainParts::PreMainMessageLoopRunImpl() + 4372 9 browser_tests 0x000000010f942e3d ChromeBrowserMainParts::PreMainMessageLoopRun() + 45 10 browser_tests 0x000000010daaedc2 content::BrowserMainLoop::PreMainMessageLoopRun() + 50 11 browser_tests 0x000000010df0f397 content::StartupTaskRunner::RunAllTasksNow() + 39 12 browser_tests 0x000000010daad9fb content::BrowserMainLoop::CreateStartupTasks() + 683 13 browser_tests 0x000000010dab1065 content::BrowserMainRunnerImpl::Initialize(content::MainFunctionParams const&) + 85 14 browser_tests 0x000000010daabde2 content::BrowserMain(content::MainFunctionParams const&) + 178 15 browser_tests 0x000000010f3cc601 content::ContentMainRunnerImpl::RunServiceManager(content::MainFunctionParams&, bool) + 241 16 browser_tests 0x000000010f3cc4e4 content::ContentMainRunnerImpl::Run(bool) + 292 17 browser_tests 0x00000001127318cb service_manager::Main(service_manager::MainParams const&) + 3051 18 browser_tests 0x000000010f3cb684 content::ContentMain(content::ContentMainParams const&) + 68 19 browser_tests 0x000000010fefff0d content::BrowserTestBase::SetUp() + 2829 20 browser_tests 0x000000010f8b75f1 InProcessBrowserTest::SetUp() + 529 Original change's description: > Remove AppShimHandler::Host interface and access AppShimHost directly > > This has been a longstanding TODO. Pending work will require adding > more methods to route to AppShimHost, so just delete this rather than > adding more methods to it. > > TBR=mgiuca > > Bug: 896917 > Change-Id: Idd8f55c7b6f549354441e28832e292ce693b9363 > Reviewed-on: https://chromium-review.googlesource.com/c/1357574 > Reviewed-by: ccameron <ccameron@chromium.org> > Commit-Queue: ccameron <ccameron@chromium.org> > Cr-Commit-Position: refs/heads/master@{#612938} TBR=ccameron@chromium.org,mgiuca@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 896917 Change-Id: I0e4314f3a0d9b1241ecdde333a4d02b327a06917 Reviewed-on: https://chromium-review.googlesource.com/c/1358431Reviewed-by:Guido Urdaneta <guidou@chromium.org> Commit-Queue: Guido Urdaneta <guidou@chromium.org> Cr-Commit-Position: refs/heads/master@{#613064}
Showing
Please register or sign in to comment