This source file includes following definitions.
- HandleAppExitingForPlatform
#include "chrome/browser/lifetime/application_lifetime.h"
#include "base/command_line.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/notifications/notification_ui_manager.h"
#include "chrome/common/chrome_switches.h"
#include "ui/aura/window_event_dispatcher.h"
#include "ui/views/widget/widget.h"
#if defined(USE_ASH)
#include "ash/shell.h"
#include "ui/aura/client/capture_client.h"
#endif
namespace chrome {
void HandleAppExitingForPlatform() {
#if defined(USE_ASH)
if (ash::Shell::HasInstance()) {
g_browser_process->notification_ui_manager()->CancelAll();
aura::client::GetCaptureClient(ash::Shell::GetPrimaryRootWindow())->
SetCapture(NULL);
}
#else
g_browser_process->notification_ui_manager()->CancelAll();
#endif
views::Widget::CloseAllSecondaryWidgets();
#if defined(OS_CHROMEOS)
if (!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableZeroBrowsersOpenForTests)) {
DecrementKeepAliveCount();
NotifyAndTerminate(true);
}
#endif
}
}