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

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: Rename variable. 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
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..2fb6b45f60a2035fdb9dee511b3f55042d5a8b7e 100644
--- a/chrome/browser/lifetime/application_lifetime.cc
+++ b/chrome/browser/lifetime/application_lifetime.cc
@@ -143,13 +143,11 @@ 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.
Nikita (slow) 2014/05/30 07:07:03 nit: insert empty line before comment.
Alexander Alekseev 2014/05/30 18:44:54 Done.
std::string owner_locale = state->GetString(prefs::kOwnerLocale);
if (!owner_locale.empty() &&
state->GetString(prefs::kApplicationLocale) != owner_locale &&

Powered by Google App Engine
This is Rietveld 408576698