#include "chrome/browser/lifetime/application_lifetime.h"
#include <memory>
#include <set>
#include <string>
#include "base/logging.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/browser_process_platform_part.h"
#include "chrome/browser/lifetime/browser_shutdown.h"
#include "chrome/browser/ui/profiles/profile_picker.h"
#include "chrome/common/buildflags.h"
#include "chrome/common/pref_names.h"
#include "components/language/core/browser/pref_names.h"
#include "components/language/core/common/locale_util.h"
#include "components/prefs/pref_service.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ui/aura/env.h"
#endif
#if !BUILDFLAG(IS_ANDROID)
#include "chrome/browser/lifetime/application_lifetime_desktop.h"
#endif
namespace chrome {
namespace {
void AttemptExitInternal(bool try_to_quit_application) { … }
}
#if !BUILDFLAG(IS_CHROMEOS_ASH)
void AttemptUserExit() { … }
void AttemptRelaunch() { … }
void AttemptExit() { … }
#endif
void ExitIgnoreUnloadHandlers() { … }
}