| Index: extensions/browser/app_window/app_window.cc
|
| diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc
|
| index 475ac628bf662866add4e7985b0849474d601e4e..2b01864f79e7af75b408d8eb11099207a5f26671 100644
|
| --- a/extensions/browser/app_window/app_window.cc
|
| +++ b/extensions/browser/app_window/app_window.cc
|
| @@ -285,8 +285,6 @@ void AppWindow::Init(const GURL& url,
|
| new web_modal::PopupManager(GetWebContentsModalDialogHost()));
|
| popup_manager_->RegisterWith(web_contents);
|
|
|
| - // Prevent the browser process from shutting down while this window exists.
|
| - app_window_client->IncrementKeepAliveCount();
|
| UpdateExtensionAppIcon();
|
| AppWindowRegistry::Get(browser_context_)->AddAppWindow(this);
|
|
|
| @@ -331,13 +329,7 @@ void AppWindow::Init(const GURL& url,
|
| }
|
|
|
| AppWindow::~AppWindow() {
|
| - // Unregister now to prevent getting notified if we're the last window open.
|
| - app_delegate_->SetTerminatingCallback(base::Closure());
|
| -
|
| ExtensionRegistry::Get(browser_context_)->RemoveObserver(this);
|
| -
|
| - // Remove shutdown prevention.
|
| - AppWindowClient::Get()->DecrementKeepAliveCount();
|
| }
|
|
|
| void AppWindow::RequestMediaAccessPermission(
|
|
|