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

Issue 303233004: Write "logout-started" event on next boot. (Closed)

Created:
6 years, 6 months ago by Alexander Alekseev
Modified:
6 years, 6 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Write "logout-started" event on next boot. Writing logout-started on process exit is unstable. So moving it to next boot. BUG=352130 TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274649

Patch Set 1 #

Patch Set 2 : Rename variable. #

Total comments: 14

Patch Set 3 : Update after review. #

Total comments: 10

Patch Set 4 : Update after review. #

Patch Set 5 : Remove duplicate lines. #

Total comments: 12

Patch Set 6 : Update after review. #

Total comments: 5

Patch Set 7 : Update after review. #

Patch Set 8 : Add exception for ScopedAllowIO. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -53 lines) Patch
M PRESUBMIT.py View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/boot_times_loader.h View 1 2 3 4 5 3 chunks +39 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/boot_times_loader.cc View 1 2 3 4 5 6 7 chunks +169 lines, -43 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/lifetime/application_lifetime.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Alexander Alekseev
Please review. jochen@ : chrome/browser/lifetime/application_lifetime.cc nkostylev@, stejenjb@ : all
6 years, 6 months ago (2014-05-30 00:16:56 UTC) #1
Nikita (slow)
So essentiall on boot you're now writing both logout-started and login-prompt-visible? Where's the guarantee that ...
6 years, 6 months ago (2014-05-30 06:57:44 UTC) #2
Nikita (slow)
lgtm https://codereview.chromium.org/303233004/diff/20001/chrome/browser/chromeos/boot_times_loader.cc File chrome/browser/chromeos/boot_times_loader.cc (right): https://codereview.chromium.org/303233004/diff/20001/chrome/browser/chromeos/boot_times_loader.cc#newcode345 chrome/browser/chromeos/boot_times_loader.cc:345: return uptime + '^' + disk; nit: Please ...
6 years, 6 months ago (2014-05-30 07:07:02 UTC) #3
stevenjb
https://codereview.chromium.org/303233004/diff/40001/chrome/browser/chromeos/boot_times_loader.cc File chrome/browser/chromeos/boot_times_loader.cc (right): https://codereview.chromium.org/303233004/diff/40001/chrome/browser/chromeos/boot_times_loader.cc#newcode359 chrome/browser/chromeos/boot_times_loader.cc:359: } While on the one hand this is fairly ...
6 years, 6 months ago (2014-05-30 16:20:23 UTC) #4
Alexander Alekseev
On 2014/05/30 06:57:44, Nikita Kostylev wrote: > So essentiall on boot you're now writing both ...
6 years, 6 months ago (2014-05-30 18:44:39 UTC) #5
Alexander Alekseev
https://codereview.chromium.org/303233004/diff/20001/chrome/browser/chromeos/boot_times_loader.cc File chrome/browser/chromeos/boot_times_loader.cc (right): https://codereview.chromium.org/303233004/diff/20001/chrome/browser/chromeos/boot_times_loader.cc#newcode345 chrome/browser/chromeos/boot_times_loader.cc:345: return uptime + '^' + disk; On 2014/05/30 07:07:03, ...
6 years, 6 months ago (2014-05-30 18:44:54 UTC) #6
Alexander Alekseev
Steven, please review again. https://codereview.chromium.org/303233004/diff/40001/chrome/browser/chromeos/boot_times_loader.cc File chrome/browser/chromeos/boot_times_loader.cc (right): https://codereview.chromium.org/303233004/diff/40001/chrome/browser/chromeos/boot_times_loader.cc#newcode359 chrome/browser/chromeos/boot_times_loader.cc:359: } On 2014/05/30 16:20:23, stevenjb ...
6 years, 6 months ago (2014-05-30 21:12:45 UTC) #7
jochen (gone - plz use gerrit)
lgtm
6 years, 6 months ago (2014-06-02 07:06:01 UTC) #8
jochen (gone - plz use gerrit)
should the c/b/lifetime directory have an OWNERS file?
6 years, 6 months ago (2014-06-02 07:06:34 UTC) #9
stevenjb
https://codereview.chromium.org/303233004/diff/70008/chrome/browser/chromeos/boot_times_loader.cc File chrome/browser/chromeos/boot_times_loader.cc (right): https://codereview.chromium.org/303233004/diff/70008/chrome/browser/chromeos/boot_times_loader.cc#newcode87 chrome/browser/chromeos/boot_times_loader.cc:87: } nit: {} unnecessary https://codereview.chromium.org/303233004/diff/70008/chrome/browser/chromeos/boot_times_loader.cc#newcode140 chrome/browser/chromeos/boot_times_loader.cc:140: base::ThreadRestrictions::ScopedAllowIO allow_io; We ...
6 years, 6 months ago (2014-06-02 15:30:30 UTC) #10
Alexander Alekseev
https://codereview.chromium.org/303233004/diff/70008/chrome/browser/chromeos/boot_times_loader.cc File chrome/browser/chromeos/boot_times_loader.cc (right): https://codereview.chromium.org/303233004/diff/70008/chrome/browser/chromeos/boot_times_loader.cc#newcode87 chrome/browser/chromeos/boot_times_loader.cc:87: } On 2014/06/02 15:30:31, stevenjb wrote: > nit: {} ...
6 years, 6 months ago (2014-06-02 18:46:03 UTC) #11
stevenjb
lgtm https://codereview.chromium.org/303233004/diff/90001/chrome/browser/chromeos/boot_times_loader.cc File chrome/browser/chromeos/boot_times_loader.cc (right): https://codereview.chromium.org/303233004/diff/90001/chrome/browser/chromeos/boot_times_loader.cc#newcode158 chrome/browser/chromeos/boot_times_loader.cc:158: return result; nit: don't return here ('return result' ...
6 years, 6 months ago (2014-06-02 19:11:37 UTC) #12
Alexander Alekseev
Ok, I'll commit this. https://codereview.chromium.org/303233004/diff/90001/chrome/browser/chromeos/boot_times_loader.cc File chrome/browser/chromeos/boot_times_loader.cc (right): https://codereview.chromium.org/303233004/diff/90001/chrome/browser/chromeos/boot_times_loader.cc#newcode158 chrome/browser/chromeos/boot_times_loader.cc:158: return result; On 2014/06/02 19:11:38, ...
6 years, 6 months ago (2014-06-02 19:18:44 UTC) #13
Alexander Alekseev
The CQ bit was checked by alemate@chromium.org
6 years, 6 months ago (2014-06-02 19:18:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alemate@chromium.org/303233004/110001
6 years, 6 months ago (2014-06-02 19:20:40 UTC) #15
stevenjb
https://codereview.chromium.org/303233004/diff/90001/chrome/browser/chromeos/boot_times_loader.cc File chrome/browser/chromeos/boot_times_loader.cc (right): https://codereview.chromium.org/303233004/diff/90001/chrome/browser/chromeos/boot_times_loader.cc#newcode184 chrome/browser/chromeos/boot_times_loader.cc:184: return Stats(); On 2014/06/02 19:18:45, alemate wrote: > On ...
6 years, 6 months ago (2014-06-02 19:26:32 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-02 22:48:12 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 22:51:23 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/71172)
6 years, 6 months ago (2014-06-02 22:51:23 UTC) #19
Alexander Alekseev
maruel@: please review PRESUBMIT.py We need IO exception here because only /proc is accessed in ...
6 years, 6 months ago (2014-06-03 14:19:17 UTC) #20
M-A Ruel
rubberstamp lgtm. Avi added this check, I'm not invested in it.
6 years, 6 months ago (2014-06-03 14:33:56 UTC) #21
Alexander Alekseev
On 2014/06/03 14:33:56, M-A Ruel wrote: > rubberstamp lgtm. Avi added this check, I'm not ...
6 years, 6 months ago (2014-06-03 14:40:33 UTC) #22
Avi (use Gerrit)
On 2014/06/03 14:40:33, alemate wrote: > On 2014/06/03 14:33:56, M-A Ruel wrote: > > rubberstamp ...
6 years, 6 months ago (2014-06-03 14:54:45 UTC) #23
Alexander Alekseev
The CQ bit was checked by alemate@chromium.org
6 years, 6 months ago (2014-06-03 15:13:30 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alemate@chromium.org/303233004/130001
6 years, 6 months ago (2014-06-03 15:14:08 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-03 19:11:04 UTC) #26
commit-bot: I haz the power
6 years, 6 months ago (2014-06-03 22:20:22 UTC) #27
Message was sent while issue was closed.
Change committed as 274649

Powered by Google App Engine
This is Rietveld 408576698