Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Issue 543123004: Close AppWindow to perform clean shutdown (Closed)

Created:
6 years, 3 months ago by hashimoto
Modified:
6 years, 3 months ago
Reviewers:
James Cook, oshima
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, dharcourt, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@apifeatures
Project:
chromium
Visibility:
Public.

Description

Close AppWindow to perform clean shutdown 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 Committed: https://crrev.com/06aaa078382af19a198b9669ffc4e6add92aa53d Cr-Commit-Position: refs/heads/master@{#294124}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -21 lines) Patch
M athena/main/athena_main.cc View 2 chunks +12 lines, -3 lines 0 comments Download
M extensions/shell/browser/api/shell/shell_api.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M extensions/shell/browser/desktop_controller.h View 2 chunks +9 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_apps_client.cc View 2 chunks +1 line, -2 lines 0 comments Download
M extensions/shell/browser/shell_desktop_controller.h View 1 2 chunks +7 lines, -3 lines 0 comments Download
M extensions/shell/browser/shell_desktop_controller.cc View 1 5 chunks +23 lines, -8 lines 0 comments Download
M extensions/shell/browser/shell_native_app_window.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (6 generated)
hashimoto
6 years, 3 months ago (2014-09-08 09:22:08 UTC) #3
James Cook
I don't understand who owns the AppWindow* returned by CreateAppWindow(). Could you clarify? Also, is ...
6 years, 3 months ago (2014-09-08 18:14:31 UTC) #4
hashimoto
On 2014/09/08 18:14:31, James Cook wrote: > I don't understand who owns the AppWindow* returned ...
6 years, 3 months ago (2014-09-09 00:30:41 UTC) #5
James Cook
LGTM. I think this code will be clearer when we delete ShellAppWIndow. https://codereview.chromium.org/543123004/diff/20001/extensions/shell/browser/shell_desktop_controller.h File extensions/shell/browser/shell_desktop_controller.h ...
6 years, 3 months ago (2014-09-09 15:32:23 UTC) #6
hashimoto
https://codereview.chromium.org/543123004/diff/20001/extensions/shell/browser/shell_desktop_controller.h File extensions/shell/browser/shell_desktop_controller.h (right): https://codereview.chromium.org/543123004/diff/20001/extensions/shell/browser/shell_desktop_controller.h#newcode139 extensions/shell/browser/shell_desktop_controller.h:139: AppWindow* app_window_; On 2014/09/09 15:32:23, James Cook wrote: > ...
6 years, 3 months ago (2014-09-09 16:32:44 UTC) #7
hashimoto
oshima@, could you review athena_main.cc as an owner? Once we switch to app.window.create API and ...
6 years, 3 months ago (2014-09-09 16:36:24 UTC) #9
oshima
athena/ lgtm
6 years, 3 months ago (2014-09-09 17:28:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/543123004/40001
6 years, 3 months ago (2014-09-10 04:48:36 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/13820)
6 years, 3 months ago (2014-09-10 05:06:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/543123004/40001
6 years, 3 months ago (2014-09-10 06:09:06 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:40001) as 30b0773ff45b62e3dd5f4fbfafdc4787850ccf13
6 years, 3 months ago (2014-09-10 06:33:57 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 06:36:25 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/06aaa078382af19a198b9669ffc4e6add92aa53d
Cr-Commit-Position: refs/heads/master@{#294124}

Powered by Google App Engine
This is Rietveld 408576698