Make ApplicationImpl::Shutdown not a static and instead have callers use the current...
commit1b734651e2befb7d42d7724324c983a8526a9f50
authorjam <jam@chromium.org>
Fri, 22 May 2015 22:26:42 +0000 (22 15:26 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 22 May 2015 22:27:19 +0000 (22 22:27 +0000)
treea9276dbcfbc58ad7eb81885d9a3bac2214f4b958
parentea2fb8c1af36cc540a32217d908fd01a6af40303
Make ApplicationImpl::Shutdown not a static and instead have callers use the current object.

The reason is that we'll need to do bookkeeping when an application requests shutdown because there are no outstanding connections. This will involve a handshake with the shell, and we need a place to store state. That should be ApplicationImpl. To do that, we'll need to have the pointer to it at shutdown.

BUG=484234

Review URL: https://codereview.chromium.org/1157683002

Cr-Commit-Position: refs/heads/master@{#331193}
components/html_viewer/html_document.cc
components/html_viewer/setup.cc
components/html_viewer/setup.h
components/view_manager/public/cpp/lib/view_manager_init.cc
components/view_manager/view_manager_app.cc
mojo/application/public/cpp/application_impl.h
mojo/application/public/cpp/lib/application_impl.cc
mojo/application/public/cpp/lib/application_runner.cc