Chromium Code Reviews
DescriptionExtract kArcEnabled preference from ArcSessionManager part 2.
This extracts ArcPlayStoreEnabledPreferenceHandler from
ArcSessionManager.
The new class observes preference change, and notifies ArcSessionManager.
With this extraction, ArcSessionManager is no longer depends on
Google Play Store enabled preference.
The extraction makes ArcSessionManager's focus clearer. More clean up allow us for better testing.
Also, this is towards to ARC on login screen and pARC world.
This CL extracts the dependency to ArcAuthNotification from
ArcSessionManager and moved to ArcPlayStoreEnabledPreferenceHandler, too.
So, ArcAuthNotification::DisableForTesting is also extracted from
ArcSessionManager::DisableUIForTesting. Each test has responsibility
to call them individually if necessary.
BUG=657687
BUG=b/31079732
TEST=Ran trybots. Still boot ARC.
Review-Url: https://codereview.chromium.org/2723073002
Cr-Commit-Position: refs/heads/master@{#454441}
Committed: https://chromium.googlesource.com/chromium/src/+/f6f68f0cde9cde5b35b4f13bb5933d0166e64173
Patch Set 1 #
Total comments: 28
Patch Set 2 : Address comment. #Patch Set 3 : rebase #Patch Set 4 : address comments #Messages
Total messages: 38 (22 generated)
|