Chromium Code Reviews
DescriptionSplit ArcSessionManager::OnPrimaryUserProfilePrepared().
The operations in the method can be categorlized into two groups:
1) Set Profile instance and instantiate several objects
which depends on the Profile instnace.
2) Start observing arc.enabled preference, and sets initial state
based on its initial value.
This CL splits the method into them. 1) is SetProfile() and 2) is
StartPreferenceHandler().
For that perspective, IsArcAllowedForProfile() check is moved
into ArcServiceLauncher::OnPrimaryUserProfilePrepared(), which is
the only caller of the original
ArcSessionManager::OnPrimaryUserProfilePrepared().
Along with the change, tests, specifically ArcSessionManagerTests
are rewritten.
BUG=657687
BUG=b/31079732
TEST=Ran trybots.
Review-Url: https://codereview.chromium.org/2708923013
Cr-Commit-Position: refs/heads/master@{#453640}
Committed: https://chromium.googlesource.com/chromium/src/+/2ad9932506a578cd937848e2c7b2904ee4d67268
Patch Set 1 #
Total comments: 10
Patch Set 2 : rebase #Messages
Total messages: 24 (13 generated)
|