Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1850)

Unified Diff: chrome/browser/lifetime/application_lifetime.cc

Issue 303233004: Write "logout-started" event on next boot. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add exception for ScopedAllowIO. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/lifetime/application_lifetime.cc
diff --git a/chrome/browser/lifetime/application_lifetime.cc b/chrome/browser/lifetime/application_lifetime.cc
index 6731cb59edf53afa60c95a0fdcf4e25374be5dbb..7e377a83cf581c26467528f1d155d0af4b054b8c 100644
--- a/chrome/browser/lifetime/application_lifetime.cc
+++ b/chrome/browser/lifetime/application_lifetime.cc
@@ -143,13 +143,12 @@ void AttemptUserExit() {
#if defined(OS_CHROMEOS)
StartShutdownTracing();
chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutStarted", false);
- // Write /tmp/uptime-logout-started as well.
- const char kLogoutStarted[] = "logout-started";
- chromeos::BootTimesLoader::Get()->RecordCurrentStats(kLogoutStarted);
- // Login screen should show up in owner's locale.
PrefService* state = g_browser_process->local_state();
if (state) {
+ chromeos::BootTimesLoader::Get()->OnLogoutStarted(state);
+
+ // Login screen should show up in owner's locale.
std::string owner_locale = state->GetString(prefs::kOwnerLocale);
if (!owner_locale.empty() &&
state->GetString(prefs::kApplicationLocale) != owner_locale &&
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698