| Index: chrome/browser/lifetime/application_lifetime_aura.cc
|
| diff --git a/chrome/browser/lifetime/application_lifetime_aura.cc b/chrome/browser/lifetime/application_lifetime_aura.cc
|
| index 5cfca40cd10c761cb85628cf73d68595eaead3ad..0b0ae406c7cc7eb107b58b63c81707d7d53935b8 100644
|
| --- a/chrome/browser/lifetime/application_lifetime_aura.cc
|
| +++ b/chrome/browser/lifetime/application_lifetime_aura.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/command_line.h"
|
| #include "chrome/common/chrome_switches.h"
|
| +#include "chrome/common/switch_utils.h"
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/notifications/notification_ui_manager.h"
|
| #include "ui/views/widget/widget.h"
|
| @@ -38,7 +39,8 @@ void HandleAppExitingForPlatform() {
|
|
|
| #if defined(OS_CHROMEOS)
|
| if (!CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kDisableZeroBrowsersOpenForTests)) {
|
| + switches::kDisableZeroBrowsersOpenForTests) &&
|
| + !switches::IsRunningInAppMode()) {
|
| // App is exiting, call EndKeepAlive() on behalf of Aura Shell.
|
| EndKeepAlive();
|
| // Make sure we have notified the session manager that we are exiting.
|
|
|