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

Issue 2708923013: Split ArcSessionManager::OnPrimaryUserProfilePrepared(). (Closed)

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

Description

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -225 lines) Patch
M chrome/browser/chromeos/arc/arc_service_launcher.cc View 4 chunks +23 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager.h View 2 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager.cc View 1 3 chunks +47 lines, -42 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager_unittest.cc View 1 10 chunks +115 lines, -146 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_arc_package_helper.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_test.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_ash_unittest.cc View 4 chunks +0 lines, -22 lines 0 comments Download

Messages

Total messages: 24 (13 generated)
hidehiko
PTAL. lhchavez@: Main reviewer. c/b/c/arc OWNER. skym@: c/b/sync OWNER benwells@: c/b/ui/app_list/ OWNER (usually I'm asking ...
3 years, 10 months ago (2017-02-24 18:29:13 UTC) #6
skym
c/b/sync lgtm
3 years, 10 months ago (2017-02-24 18:41:25 UTC) #7
Mr4D (OOO till 08-26)
c/b/ui/ash/launcher lgtm
3 years, 10 months ago (2017-02-24 22:36:01 UTC) #8
Yusuke Sato
Luis is ooo today. lgtm https://codereview.chromium.org/2708923013/diff/1/chrome/browser/chromeos/arc/arc_session_manager.cc File chrome/browser/chromeos/arc/arc_session_manager.cc (right): https://codereview.chromium.org/2708923013/diff/1/chrome/browser/chromeos/arc/arc_session_manager.cc#newcode500 chrome/browser/chromeos/arc/arc_session_manager.cc:500: VLOG(1) << "ARC is ...
3 years, 10 months ago (2017-02-25 01:11:03 UTC) #10
hidehiko
Ben, friendly ping? https://codereview.chromium.org/2708923013/diff/1/chrome/browser/chromeos/arc/arc_session_manager.cc File chrome/browser/chromeos/arc/arc_session_manager.cc (right): https://codereview.chromium.org/2708923013/diff/1/chrome/browser/chromeos/arc/arc_session_manager.cc#newcode500 chrome/browser/chromeos/arc/arc_session_manager.cc:500: VLOG(1) << "ARC is already enabled."; ...
3 years, 9 months ago (2017-02-27 22:39:53 UTC) #11
benwells
Sorry for the delay, somehow missed this. app_list and app_info_dialog lgtm
3 years, 9 months ago (2017-02-28 02:27:44 UTC) #12
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/2708923013/1
3 years, 9 months ago (2017-02-28 16:20:24 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/161650) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-02-28 16:22:30 UTC) #16
hidehiko
Rebased and re-submitting.
3 years, 9 months ago (2017-02-28 17:37:28 UTC) #18
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/2708923013/40001
3 years, 9 months ago (2017-02-28 17:38:38 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 18:08:29 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/2ad9932506a578cd937848e2c7b2...

Powered by Google App Engine
This is Rietveld 408576698