• hashimoto's avatar
    Close AppWindow to perform clean shutdown · 06aaa078
    hashimoto authored
    It results in a use-after-free if AppWindow is not closed.
    
    Add a new method DesktopController::CreateAppWindow()
    -Rename existing CreateAppWindow() method to CreateShellAppWindow().
    -Add a new method CreateAppWindow() to remember the AppWindow.
    -Close the AppWindow in CloseAppWindows().
    
    Implement ShellNativeAppWindow::Close()
    -Call AppWindow::OnNativeClose() to destruct the AppWindow.
    
    BUG=387288
    
    Review URL: https://codereview.chromium.org/543123004
    
    Cr-Commit-Position: refs/heads/master@{#294124}
    06aaa078
athena_main.cc 7.14 KB