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

Issue 2723073002: Extract kArcEnabled preference from ArcSessionManager part 2. (Closed)

Created:
3 years, 9 months ago by hidehiko
Modified:
3 years, 9 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, sadrul, oshima+watch_chromium.org, tfarina, hidehiko+watch_chromium.org, Matt Giuca, lhchavez+watch_chromium.org, sync-reviews_chromium.org, victorhsieh+watch_chromium.org, kalyank, davemoore+watch_chromium.org, yusukes+watch_chromium.org, khmel, victorhsieh
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+429 lines, -211 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.h View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc View 1 2 3 1 chunk +145 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler_unittest.cc View 1 1 chunk +151 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_service_launcher.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_service_launcher.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager.h View 1 2 7 chunks +8 lines, -21 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager.cc View 1 2 5 chunks +6 lines, -111 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager_browsertest.cc View 4 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager_unittest.cc View 1 2 7 chunks +5 lines, -65 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_arc_package_helper.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_test.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_test.cc View 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/arc_app_dialog_view_browsertest.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (22 generated)
hidehiko
This is the CL to split "arc.enabled" (= Google Play Store enabled) preference, and ArcSessionManager ...
3 years, 9 months ago (2017-03-01 12:57:03 UTC) #7
Yusuke Sato
arc/ lgtm with some comments below: https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/BUILD.gn File chrome/browser/chromeos/BUILD.gn (right): https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/BUILD.gn#newcode1 chrome/browser/chromeos/BUILD.gn:1: # Copyright 2014 ...
3 years, 9 months ago (2017-03-01 18:09:27 UTC) #8
hidehiko
Thank you for quick review, Yusuke. R+=more OWNERS. PTAL. maxbogue@: c/b/sync xiyuan@: c/b/ui/app_list skuhne@: c/b/ui/ash/launcher ...
3 years, 9 months ago (2017-03-01 19:21:32 UTC) #12
maxbogue
c/b/sync lgtm with a question https://codereview.chromium.org/2723073002/diff/1/chrome/browser/sync/test/integration/sync_arc_package_helper.cc File chrome/browser/sync/test/integration/sync_arc_package_helper.cc (right): https://codereview.chromium.org/2723073002/diff/1/chrome/browser/sync/test/integration/sync_arc_package_helper.cc#newcode155 chrome/browser/sync/test/integration/sync_arc_package_helper.cc:155: ArcSessionManager* arc_session_manager = ArcSessionManager::Get(); ...
3 years, 9 months ago (2017-03-01 19:25:52 UTC) #13
Yusuke Sato
https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc File chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc (right): https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc#newcode133 chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc:133: if (!base::CommandLine::ForCurrentProcess()->HasSwitch( On 2017/03/01 19:21:31, hidehiko wrote: > On ...
3 years, 9 months ago (2017-03-01 19:50:19 UTC) #14
xiyuan
c/b/ui/app_list lgtm
3 years, 9 months ago (2017-03-01 20:50:57 UTC) #15
Luis Héctor Chávez
https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc File chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc (right): https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc#newcode86 chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc:86: const bool is_play_store_enabled = IsArcPlayStoreEnabledForProfile(profile_); Is it possible to ...
3 years, 9 months ago (2017-03-02 00:09:17 UTC) #16
msw
c/b/ui/views lgtm with a nit; I also have a related q. https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/arc/arc_session_manager_unittest.cc File chrome/browser/chromeos/arc/arc_session_manager_unittest.cc (right): ...
3 years, 9 months ago (2017-03-02 00:25:43 UTC) #17
hidehiko
Thank you for review. PTAL, Luis. Friendly ping, Stefan. https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc File chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc (right): https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc#newcode86 chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc:86: ...
3 years, 9 months ago (2017-03-02 02:21:57 UTC) #21
hidehiko
FYI: will rebase when https://codereview.chromium.org/2722263002/ is landed (now in CQ).
3 years, 9 months ago (2017-03-02 02:41:39 UTC) #24
Luis Héctor Chávez
downgrading the nit to an optional request, so lgtm. https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc File chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc (right): https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc#newcode86 chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc:86: ...
3 years, 9 months ago (2017-03-02 03:21:09 UTC) #25
hidehiko
Thank you for review. https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc File chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc (right): https://codereview.chromium.org/2723073002/diff/1/chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc#newcode86 chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc:86: const bool is_play_store_enabled = IsArcPlayStoreEnabledForProfile(profile_); ...
3 years, 9 months ago (2017-03-02 16:37:08 UTC) #30
Luis Héctor Chávez
lgtm++.
3 years, 9 months ago (2017-03-02 16:39:26 UTC) #31
Mr4D (OOO till 08-26)
c/b/ui/ash/launcher lgtm
3 years, 9 months ago (2017-03-02 19:45:59 UTC) #32
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/2723073002/60001
3 years, 9 months ago (2017-03-02 23:49:31 UTC) #35
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 23:56:09 UTC) #38
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/f6f68f0cde9cde5b35b4f13bb593...

Powered by Google App Engine
This is Rietveld 408576698