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

Issue 2642783003: Move more utility functions to arc_util. (Closed)

Created:
3 years, 11 months ago by hidehiko
Modified:
3 years, 10 months ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, hidehiko+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, lhchavez+watch_chromium.org, fukino+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, yamaguchi+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, elijahtaylor+arcwatch_chromium.org, michaelpg+watch-options_chromium.org, tfarina, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, davemoore+watch_chromium.org, Daniel Erat, oka, khmel
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move more utility functions to arc_util. ArcSessionManager also as static utility methods which are not directly related to the class. This CL extracts them into arc_util. IsArcAllowedForProfile() is still in chrome/browser/chromeos/arc, because of its dependency. Others are in components/arc/. This is preparation to split state machine inside arc_session_manager. Also, it's time to add unittest for each. BUG=657687 BUG=b/31079732 TEST=Ran bots. TBR=benwells@chromium.org Review-Url: https://codereview.chromium.org/2642783003 Cr-Commit-Position: refs/heads/master@{#447223} Committed: https://chromium.googlesource.com/chromium/src/+/0b75bce63b6fc6a882337f92bb8780ba703efeb8

Patch Set 1 #

Patch Set 2 : Revert IsIntentHelperAvailable fix. #

Total comments: 52

Patch Set 3 : rebase, remove util:: namespace #

Patch Set 4 : address review comments #

Total comments: 8

Patch Set 5 : rebase #

Patch Set 6 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+427 lines, -157 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 7 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager.h View 1 2 3 2 chunks +9 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager.cc View 1 2 3 4 8 chunks +7 lines, -86 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_util.h View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_util.cc View 1 2 3 4 5 1 chunk +91 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_util_unittest.cc View 1 2 3 1 chunk +180 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/event_router.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/info_private_api.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/info_private_apitest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.cc View 1 2 3 4 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/note_taking_helper.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_syncable_service.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_list_prefs_factory.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/search/app_search_provider.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_controller_helper.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/extensions/app_launch_params.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 5 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/android_apps_handler.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_ui.cc View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M components/arc/arc_util.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M components/arc/arc_util.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M components/arc/arc_util_unittest.cc View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M components/arc/intent_helper/arc_intent_helper_bridge.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 48 (27 generated)
hidehiko
PTAL. - lhchavez@, yusukes@: c/b/c/arc, components/arc - kinaba@: c/b/c/extentions/file_manager, c/b/c/file_manager - xiyuan@: other c/b/c files, ...
3 years, 11 months ago (2017-01-19 06:57:26 UTC) #10
Shuhei Takahashi
QQ: Do we need util:: namespace for those functions? All functions in arc_util.h looks very ...
3 years, 11 months ago (2017-01-19 07:08:08 UTC) #12
hidehiko
On 2017/01/19 07:08:08, Shuhei Takahashi wrote: > QQ: Do we need util:: namespace for those ...
3 years, 11 months ago (2017-01-19 07:40:37 UTC) #13
Shuhei Takahashi
On 2017/01/19 07:40:37, hidehiko wrote: > On 2017/01/19 07:08:08, Shuhei Takahashi wrote: > > QQ: ...
3 years, 11 months ago (2017-01-19 08:29:10 UTC) #14
Mr4D (OOO till 08-26)
c/b/ui/launcher lgtm
3 years, 11 months ago (2017-01-19 14:54:03 UTC) #15
afakhry
c/b/task_manager lgtm
3 years, 11 months ago (2017-01-19 16:55:01 UTC) #16
Luis Héctor Chávez
https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/BUILD.gn File chrome/browser/chromeos/BUILD.gn (right): https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/BUILD.gn#newcode1460 chrome/browser/chromeos/BUILD.gn:1460: "arc/arc_util_unittest.cc", :D https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/arc/arc_util.cc File chrome/browser/chromeos/arc/arc_util.cc (right): https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/arc/arc_util.cc#newcode21 chrome/browser/chromeos/arc/arc_util.cc:21: VLOG(1) ...
3 years, 11 months ago (2017-01-19 18:09:16 UTC) #17
xiyuan
c/b/c, c/b/ui/app_list, c/b/ui/webui lgtm https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/arc/arc_util_unittest.cc File chrome/browser/chromeos/arc/arc_util_unittest.cc (right): https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/arc/arc_util_unittest.cc#newcode177 chrome/browser/chromeos/arc/arc_util_unittest.cc:177: // simulate ephemeral user. If ...
3 years, 11 months ago (2017-01-19 19:12:47 UTC) #18
khmel
https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/arc/arc_util_unittest.cc File chrome/browser/chromeos/arc/arc_util_unittest.cc (right): https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/arc/arc_util_unittest.cc#newcode177 chrome/browser/chromeos/arc/arc_util_unittest.cc:177: // simulate ephemeral user. On 2017/01/19 19:12:46, xiyuan wrote: ...
3 years, 11 months ago (2017-01-19 19:18:54 UTC) #20
xiyuan
https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/arc/arc_util_unittest.cc File chrome/browser/chromeos/arc/arc_util_unittest.cc (right): https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/arc/arc_util_unittest.cc#newcode177 chrome/browser/chromeos/arc/arc_util_unittest.cc:177: // simulate ephemeral user. On 2017/01/19 19:18:54, khmel wrote: ...
3 years, 11 months ago (2017-01-19 19:21:51 UTC) #21
Yusuke Sato
https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/arc/arc_session_manager.h File chrome/browser/chromeos/arc/arc_session_manager.h (right): https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/arc/arc_session_manager.h#newcode132 chrome/browser/chromeos/arc/arc_session_manager.h:132: bool IsAllowed() const; I feel the function name is ...
3 years, 11 months ago (2017-01-19 22:39:31 UTC) #22
kinaba
*file_manager* lgtm
3 years, 11 months ago (2017-01-20 01:53:22 UTC) #23
hidehiko
On 2017/01/20 01:53:22, kinaba wrote: > *file_manager* lgtm Thank you all for your quick review. ...
3 years, 11 months ago (2017-01-20 10:00:33 UTC) #24
hidehiko
Luis, Yusuke, thank you for the discussion. Now name conflicting is being resolved, I rebased ...
3 years, 11 months ago (2017-01-24 17:46:12 UTC) #31
hidehiko
Hmm... Try looks not working well with rebasing on top of under review CL for ...
3 years, 11 months ago (2017-01-24 17:47:56 UTC) #32
Yusuke Sato
lgtm, thanks! https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/arc/arc_session_manager.h File chrome/browser/chromeos/arc/arc_session_manager.h (right): https://codereview.chromium.org/2642783003/diff/20001/chrome/browser/chromeos/arc/arc_session_manager.h#newcode161 chrome/browser/chromeos/arc/arc_session_manager.h:161: bool IsArcEnabled() const; On 2017/01/24 17:46:11, hidehiko ...
3 years, 11 months ago (2017-01-24 20:36:59 UTC) #33
Luis Héctor Chávez
lgtm
3 years, 11 months ago (2017-01-26 17:58:33 UTC) #34
hidehiko
Thank you for review, all. Landing with TBR=benwells@, following the second item of http://dev.chromium.org/developers/owners-files#TOC-When-to-use-To-Be-Reviewed-TBR- https://codereview.chromium.org/2642783003/diff/100001/chrome/browser/chromeos/BUILD.gn ...
3 years, 10 months ago (2017-01-31 13:07:51 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/2642783003/140001
3 years, 10 months ago (2017-01-31 13:08:13 UTC) #44
commit-bot: I haz the power
Committed patchset #6 (id:140001) as https://chromium.googlesource.com/chromium/src/+/0b75bce63b6fc6a882337f92bb8780ba703efeb8
3 years, 10 months ago (2017-01-31 13:13:39 UTC) #47
tsergeant
3 years, 10 months ago (2017-01-31 23:53:41 UTC) #48
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:140001) has been created in
https://codereview.chromium.org/2668153002/ by tsergeant@chromium.org.

The reason for reverting is: The new test
ChromeArcUtilTest.IsArcAllowedForProfile_SupervisedUserFlow fails on the builder
Linux Chromium OS ASan LSan Tests (1).

See example failure:
https://luci-milo.appspot.com/buildbot/chromium.memory/Linux%20Chromium%20OS%....

Powered by Google App Engine
This is Rietveld 408576698