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

Issue 1815853002: cros: Flush profile files at critical moments (Closed)

Created:
4 years, 9 months ago by xiyuan
Modified:
4 years, 9 months ago
Reviewers:
achuithb
CC:
chromium-reviews, dzhioev+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Flush profile files at critical moments - Add a FileFlusher helper to flush files under a given dir; - Add ProfileHelper::FlushProfile to flush files for a given profile; - FlushProfile after a user profile is loaded and again after merge session; - FlushProfile if the signin profile is just created; - Commit local state change upon user session starts, oauth status and force online signin flag is changed; BUG=592096 Committed: https://crrev.com/7131ebe0af4b20c6b0d8c138733cf944094e5adb Cr-Commit-Position: refs/heads/master@{#382632}

Patch Set 1 #

Total comments: 15

Patch Set 2 : fix comments in #1 and add a simple test #

Total comments: 6

Patch Set 3 : fix nits and create test files to fix trybots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+525 lines, -19 lines) Patch
A chrome/browser/chromeos/base/file_flusher.h View 1 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/base/file_flusher.cc View 1 1 chunk +206 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/base/file_flusher_unittest.cc View 1 2 1 chunk +150 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 chunk +10 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.h View 5 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.cc View 1 5 chunks +55 lines, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/user_manager/user_manager_base.cc View 3 chunks +16 lines, -13 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
xiyuan
Achuith, could you help to review this? Thanks.
4 years, 9 months ago (2016-03-18 22:47:51 UTC) #2
achuithb
What is the plan for test coverage for FileFlusher? https://codereview.chromium.org/1815853002/diff/1/chrome/browser/chromeos/base/file_flusher.cc File chrome/browser/chromeos/base/file_flusher.cc (right): https://codereview.chromium.org/1815853002/diff/1/chrome/browser/chromeos/base/file_flusher.cc#newcode52 chrome/browser/chromeos/base/file_flusher.cc:52: ...
4 years, 9 months ago (2016-03-21 17:45:41 UTC) #3
achuithb
lgtm. The nits are optional and we had a conversation about the difficulty of end ...
4 years, 9 months ago (2016-03-21 17:59:42 UTC) #4
xiyuan
Thanks for the review. Per our discussion, even though we cannot really test the underlying ...
4 years, 9 months ago (2016-03-21 22:14:54 UTC) #5
achuithb
lgtm! Thanks for the unittests! https://codereview.chromium.org/1815853002/diff/1/chrome/browser/chromeos/base/file_flusher.cc File chrome/browser/chromeos/base/file_flusher.cc (right): https://codereview.chromium.org/1815853002/diff/1/chrome/browser/chromeos/base/file_flusher.cc#newcode148 chrome/browser/chromeos/base/file_flusher.cc:148: for (const auto& job ...
4 years, 9 months ago (2016-03-21 22:32:56 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815853002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815853002/60001
4 years, 9 months ago (2016-03-22 17:41:39 UTC) #10
xiyuan
https://codereview.chromium.org/1815853002/diff/1/chrome/browser/chromeos/base/file_flusher.cc File chrome/browser/chromeos/base/file_flusher.cc (right): https://codereview.chromium.org/1815853002/diff/1/chrome/browser/chromeos/base/file_flusher.cc#newcode148 chrome/browser/chromeos/base/file_flusher.cc:148: for (const auto& job : jobs_) On 2016/03/21 22:32:56, ...
4 years, 9 months ago (2016-03-22 18:41:33 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 9 months ago (2016-03-22 19:22:15 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 19:24:40 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7131ebe0af4b20c6b0d8c138733cf944094e5adb
Cr-Commit-Position: refs/heads/master@{#382632}

Powered by Google App Engine
This is Rietveld 408576698