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

Issue 2507073002: Split ArcSessionManager from ArcAuthService. (Closed)

Created:
4 years, 1 month ago by hidehiko
Modified:
4 years, 1 month ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, extensions-reviews_chromium.org, Matt Giuca, achuith+watch_chromium.org, khmel+watch_chromium.org, kalyank, dbeam+watch-options_chromium.org, alemate+watch_chromium.org, asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, sync-reviews_chromium.org, elijahtaylor+arcwatch_chromium.org, michaelpg+watch-options_chromium.org, oshima+watch_chromium.org, tfarina, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split ArcSessionManager from ArcAuthService. ArcAuthService has multiple responsibility. Specifically, handling on ARC boot-phase proceder and AuthHost implementation should be independent. This CL extracts everything other than AuthHost implementation into another class, named ArcSessionManager. BUG=657687 BUG=b/31079732 TEST=Ran on test device. Ran bots. TBR=stevenjb@chromium.org Committed: https://crrev.com/5d94408675c787c6be6e1c7129d3180d9ca7786a Cr-Commit-Position: refs/heads/master@{#433131}

Patch Set 1 #

Patch Set 2 : Split ArcSessionManager from ArcAuthService #

Total comments: 11

Patch Set 3 : Address comments #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : Fix rebase mistake #

Unified diffs Side-by-side diffs Delta from patch set Stats (+781 lines, -2713 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/BUILD.gn View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 3 4 5 6 3 chunks +17 lines, -227 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 6 8 chunks +88 lines, -851 lines 0 comments Download
D chrome/browser/chromeos/arc/arc_auth_service_browsertest.cc View 1 chunk +0 lines, -375 lines 0 comments Download
D chrome/browser/chromeos/arc/arc_auth_service_unittest.cc View 1 chunk +0 lines, -365 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_optin_uma.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_service_launcher.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/arc/arc_session_manager.h View 1 2 3 4 5 6 7 11 chunks +25 lines, -70 lines 0 comments Download
A + chrome/browser/chromeos/arc/arc_session_manager.cc View 1 2 3 4 5 6 28 chunks +81 lines, -348 lines 0 comments Download
A + chrome/browser/chromeos/arc/arc_session_manager_browsertest.cc View 1 8 chunks +31 lines, -162 lines 0 comments Download
A + chrome/browser/chromeos/arc/arc_session_manager_unittest.cc View 1 9 chunks +106 lines, -93 lines 0 comments Download
A chrome/browser/chromeos/arc/auth/arc_robot_auth_browsertest.cc View 1 1 chunk +178 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/enterprise/arc_enterprise_reporting_service.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/arc/extensions/arc_support_message_host.cc View 3 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/arc/intent_helper/arc_settings_service.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/extensions/info_private_api.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/session/chrome_session_manager.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_status_collector_browsertest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/feedback_private/feedback_private_api.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/metrics/chromeos_metrics_provider.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 3 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_arc_package_helper.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_views_browsertest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_list_prefs.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc View 1 2 3 3 chunks +17 lines, -15 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_list_prefs_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_model_builder.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_test.h View 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_test.cc View 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_utils.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/search/app_search_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.h View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc View 2 chunks +16 lines, -13 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_launcher_browsertest.cc View 1 2 3 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc View 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 10 chunks +30 lines, -25 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_controller_helper.cc View 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/extensions/app_launch_params.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_ash_unittest.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views_unittest.cc View 5 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 48 (21 generated)
hidehiko
PTAL: lhchavez@: Overall code change, specifically c/b/c/arc. xiyuan@: c/b/c/... (except c/b/c/arc), c/b/ui/app_list/, c/b/ui/webui/. afakhry@: c/b/extensions/api/feedback_private/ ...
4 years, 1 month ago (2016-11-16 16:17:25 UTC) #4
Daniel Erat
lgtm for c/b/ui/ash/
4 years, 1 month ago (2016-11-16 16:24:35 UTC) #5
Bernhard Bauer
prefs/ LGTM.
4 years, 1 month ago (2016-11-16 16:32:27 UTC) #6
bartfab (slow)
c/b/policy LGTM
4 years, 1 month ago (2016-11-16 16:44:40 UTC) #7
Luis Héctor Chávez
(+768 lines, -2679 lines) This is amazing! https://codereview.chromium.org/2507073002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2507073002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode248 chrome/browser/chromeos/arc/arc_auth_service.cc:248: if (support_host) ...
4 years, 1 month ago (2016-11-16 17:13:34 UTC) #8
afakhry
feedback_private_api.cc lgtm
4 years, 1 month ago (2016-11-16 17:16:06 UTC) #9
maxbogue
c/b/sync lgtm
4 years, 1 month ago (2016-11-16 17:36:48 UTC) #10
xiyuan
+khmel in case he is interested
4 years, 1 month ago (2016-11-16 18:35:11 UTC) #12
xiyuan
lgtm c/b/c/... (except c/b/c/arc), c/b/ui/app_list/, c/b/ui/webui/ https://codereview.chromium.org/2507073002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2507073002/diff/40001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode133 chrome/browser/chromeos/arc/arc_auth_service.cc:133: DCHECK(g_arc_auth_service == this); ...
4 years, 1 month ago (2016-11-16 18:55:53 UTC) #13
hidehiko
Thank you for review. Luis, PTAL. > +khmel in case he is interested Oops!! I ...
4 years, 1 month ago (2016-11-16 19:52:05 UTC) #14
benwells
lgtm
4 years, 1 month ago (2016-11-16 22:52:43 UTC) #15
Luis Héctor Chávez
lgtm https://codereview.chromium.org/2507073002/diff/40001/chrome/browser/chromeos/arc/arc_session_manager.h File chrome/browser/chromeos/arc/arc_session_manager.h (right): https://codereview.chromium.org/2507073002/diff/40001/chrome/browser/chromeos/arc/arc_session_manager.h#newcode202 chrome/browser/chromeos/arc/arc_session_manager.h:202: ArcSupportHost* support_host() { return support_host_.get(); } On 2016/11/16 ...
4 years, 1 month ago (2016-11-16 23:03:31 UTC) #16
Ilya Sherman
//chrome/browser/metrics lgtm, and feel free to TBR owners for such a change in the future, ...
4 years, 1 month ago (2016-11-16 23:03:48 UTC) #17
hidehiko
Thank you for review, all! > //chrome/browser/metrics lgtm, and feel free to TBR owners for ...
4 years, 1 month ago (2016-11-17 16:46:54 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/2507073002/80001
4 years, 1 month ago (2016-11-17 16:47:48 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/308029) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-11-17 16:51:55 UTC) #23
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/2507073002/100001
4 years, 1 month ago (2016-11-17 17:08:48 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/194249)
4 years, 1 month ago (2016-11-17 17:20:49 UTC) #28
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/2507073002/120001
4 years, 1 month ago (2016-11-17 18:11:29 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/307144)
4 years, 1 month ago (2016-11-17 18:26:33 UTC) #33
hidehiko
Oops, I overlooked c/b/ui/webui/options/OWNERS has setnoparent... Added stevenjb@chromium.org to R and TBR.
4 years, 1 month ago (2016-11-18 01:00:07 UTC) #35
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/2507073002/120001
4 years, 1 month ago (2016-11-18 01:03:12 UTC) #38
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/arc/arc_session_manager.cc: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-18 03:12:14 UTC) #40
hidehiko
Rebased again. Trying to land.
4 years, 1 month ago (2016-11-18 04:57:30 UTC) #41
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/2507073002/160001
4 years, 1 month ago (2016-11-18 04:57:59 UTC) #44
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 1 month ago (2016-11-18 06:17:47 UTC) #46
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 06:19:42 UTC) #48
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/5d94408675c787c6be6e1c7129d3180d9ca7786a
Cr-Commit-Position: refs/heads/master@{#433131}

Powered by Google App Engine
This is Rietveld 408576698