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

Issue 2942043002: cros: Tighten profile loading (Closed)

Created:
3 years, 6 months ago by xiyuan
Modified:
3 years, 6 months ago
Reviewers:
emaxx, msarda
CC:
chromium-reviews, dtseng+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, rginda+watch_chromium.org, dougt+watch_chromium.org, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, je_julie, davemoore+watch_chromium.org, aleventhal+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Tighten profile loading - Make it FATAL if GetLastUsedProfile() is called before user profile is properly loaded; - Fix a few places that attempt to access an user profile before it is loaded; BUG=718734 TEST=ProfileManagerTest.UserProfileLoading Review-Url: https://codereview.chromium.org/2942043002 Cr-Commit-Position: refs/heads/master@{#480575} Committed: https://chromium.googlesource.com/chromium/src/+/8c6a41160e0750686a0fb4cf05563a8ac48ccaa9

Patch Set 1 #

Patch Set 2 : update UserProfileLoading test #

Total comments: 4

Patch Set 3 : update SystemClock header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -29 lines) Patch
M chrome/browser/chromeos/accessibility/accessibility_manager.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/accessibility/magnification_manager.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/system/system_clock.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/system/system_clock.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/system/tray_accessibility_browsertest.cc View 7 chunks +18 lines, -15 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 chunk +6 lines, -7 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
xiyuan
Follow up on previous CL to make LOG(WARNING) -> LOG(FATAL) in GetLastUserProfile() and fix call ...
3 years, 6 months ago (2017-06-15 22:49:08 UTC) #9
msarda
LGTM for chrome/browser/profiles/*
3 years, 6 months ago (2017-06-16 13:50:42 UTC) #10
emaxx
https://codereview.chromium.org/2942043002/diff/20001/chrome/browser/chromeos/accessibility/accessibility_manager.cc File chrome/browser/chromeos/accessibility/accessibility_manager.cc (right): https://codereview.chromium.org/2942043002/diff/20001/chrome/browser/chromeos/accessibility/accessibility_manager.cc#newcode1275 chrome/browser/chromeos/accessibility/accessibility_manager.cc:1275: if (active_user && active_user->is_profile_created()) Doesn't this change mean that ...
3 years, 6 months ago (2017-06-19 11:29:11 UTC) #11
xiyuan
https://codereview.chromium.org/2942043002/diff/20001/chrome/browser/chromeos/accessibility/accessibility_manager.cc File chrome/browser/chromeos/accessibility/accessibility_manager.cc (right): https://codereview.chromium.org/2942043002/diff/20001/chrome/browser/chromeos/accessibility/accessibility_manager.cc#newcode1275 chrome/browser/chromeos/accessibility/accessibility_manager.cc:1275: if (active_user && active_user->is_profile_created()) On 2017/06/19 11:29:11, emaxx wrote: ...
3 years, 6 months ago (2017-06-19 15:28:00 UTC) #12
emaxx
LGTM. On 2017/06/19 15:28:00, xiyuan wrote: > Not necessarily. |AccessibilityManager|, |MagnificationManagerImpl| and > |SystemClock| observe ...
3 years, 6 months ago (2017-06-19 18:19:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2942043002/40001
3 years, 6 months ago (2017-06-19 21:00:22 UTC) #20
commit-bot: I haz the power
3 years, 6 months ago (2017-06-19 21:04:26 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8c6a41160e0750686a0fb4cf0556...

Powered by Google App Engine
This is Rietveld 408576698