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

Issue 2165643004: arc: add enterprise_reporting.mojom interface. (Closed)

Created:
4 years, 5 months ago by Polina Bondarenko
Modified:
4 years, 4 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, viettrungluu+watch_chromium.org, hidehiko+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, lhchavez+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org, qsr+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: add enterprise_reporting.mojom interface. This allows ARC to clear user data. BUG=629574 TEST=manual Committed: https://crrev.com/9282f59bec8693034cdf390927f41cfd2ea4c06c Cr-Commit-Position: refs/heads/master@{#407771}

Patch Set 1 : arc: add user_data.mojom interface. #

Patch Set 2 : Added restart #

Patch Set 3 : Fixed. #

Total comments: 2

Patch Set 4 : Added data removing. #

Total comments: 1

Patch Set 5 : watchdog --> user_data #

Total comments: 12

Patch Set 6 : Restart bridge from ArcUserDataService. #

Patch Set 7 : Rebased #

Patch Set 8 : Added user_data.mojom #

Patch Set 9 : Renamed user_data.mojom to enterprise_reporting.mojom #

Patch Set 10 : Moved ArcUserDataService to make calls to ArcAuthService #

Total comments: 8

Patch Set 11 : Fixed crash error. #

Total comments: 4

Patch Set 12 : Added ArcEnterpriseReportingService. #

Patch Set 13 : Rebased #

Total comments: 6

Patch Set 14 : Fixed a test build error. #

Patch Set 15 : Fixed lhchavez's comments. #

Total comments: 2

Patch Set 16 : Fixed comments. #

Patch Set 17 : Fixed FakeSessionManagerClient method according to real OnArcMethod. #

Patch Set 18 : Fixed SessionManagerClient stub RemoveArcData method. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -37 lines) Patch
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
A chrome/browser/chromeos/arc/arc_enterprise_reporting_service.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_enterprise_reporting_service.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_service_launcher.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_session_manager_client.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/dbus/fake_session_manager_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +7 lines, -1 line 0 comments Download
M chromeos/dbus/mock_session_manager_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/dbus/session_manager_client.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -3 lines 0 comments Download
M chromeos/dbus/session_manager_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +7 lines, -3 lines 0 comments Download
M components/arc.gypi View 1 2 3 4 5 6 7 8 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/BUILD.gn View 1 2 3 4 5 6 7 8 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/arc_bridge_service.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_service_impl.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_service_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M components/arc/arc_service_manager.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -0 lines 0 comments Download
M components/arc/arc_service_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -2 lines 0 comments Download
M components/arc/common/arc_bridge.mojom View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -3 lines 0 comments Download
A components/arc/common/enterprise_reporting.mojom View 1 2 3 4 5 6 7 8 1 chunk +32 lines, -0 lines 0 comments Download
M components/arc/user_data/arc_user_data_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +23 lines, -10 lines 0 comments Download
M components/arc/user_data/arc_user_data_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +16 lines, -9 lines 0 comments Download

Messages

Total messages: 92 (62 generated)
uekawa-
drive-by question https://codereview.chromium.org/2165643004/diff/80001/chrome/browser/chromeos/arc/arc_watchdog_service.cc File chrome/browser/chromeos/arc/arc_watchdog_service.cc (right): https://codereview.chromium.org/2165643004/diff/80001/chrome/browser/chromeos/arc/arc_watchdog_service.cc#newcode36 chrome/browser/chromeos/arc/arc_watchdog_service.cc:36: weak_factory_.GetWeakPtr())); is it safe to immediately restart ...
4 years, 5 months ago (2016-07-21 11:55:38 UTC) #14
Luis Héctor Chávez
https://codereview.chromium.org/2165643004/diff/100001/components/arc/common/watchdog.mojom File components/arc/common/watchdog.mojom (right): https://codereview.chromium.org/2165643004/diff/100001/components/arc/common/watchdog.mojom#newcode12 components/arc/common/watchdog.mojom:12: interface WatchdogInstance { Hmmm the name of this interface ...
4 years, 5 months ago (2016-07-21 16:19:54 UTC) #16
Polina Bondarenko
On 2016/07/21 16:19:54, Luis Héctor Chávez wrote: > https://codereview.chromium.org/2165643004/diff/100001/components/arc/common/watchdog.mojom > File components/arc/common/watchdog.mojom (right): > > ...
4 years, 5 months ago (2016-07-21 16:58:49 UTC) #17
Polina Bondarenko
Renamed: watchdog.mojom --> user_data.mojom, ArcWatchdogService --> ArcUserDataHost. Works after rebase.
4 years, 5 months ago (2016-07-21 18:07:25 UTC) #19
Polina Bondarenko
Hi, mdempsky@ please review changes in components/arc/common/user_data.mojom components/arc/common/arc_bridge.mojom lhchavez@, dspaid@ please review changes in components/arc/* ...
4 years, 5 months ago (2016-07-21 18:17:42 UTC) #22
Luis Héctor Chávez
On 2016/07/21 16:58:49, Polina Bondarenko wrote: > On 2016/07/21 16:19:54, Luis Héctor Chávez wrote: > ...
4 years, 5 months ago (2016-07-21 19:44:17 UTC) #23
Luis Héctor Chávez
https://codereview.chromium.org/2165643004/diff/140001/components/arc/common/arc_bridge.mojom File components/arc/common/arc_bridge.mojom (right): https://codereview.chromium.org/2165643004/diff/140001/components/arc/common/arc_bridge.mojom#newcode28 components/arc/common/arc_bridge.mojom:28: // Next MinVersion: 15 Next MinVersion: 16 https://codereview.chromium.org/2165643004/diff/140001/components/arc/common/user_data.mojom File ...
4 years, 5 months ago (2016-07-21 19:44:27 UTC) #24
Polina Bondarenko
> > Can you elaborate why it cannot call them? If it's just a problem ...
4 years, 5 months ago (2016-07-22 08:11:42 UTC) #29
Polina Bondarenko
Fixed mojom comments. https://codereview.chromium.org/2165643004/diff/140001/components/arc/common/arc_bridge.mojom File components/arc/common/arc_bridge.mojom (right): https://codereview.chromium.org/2165643004/diff/140001/components/arc/common/arc_bridge.mojom#newcode28 components/arc/common/arc_bridge.mojom:28: // Next MinVersion: 15 On 2016/07/21 ...
4 years, 5 months ago (2016-07-22 08:12:10 UTC) #30
Polina Bondarenko
https://codereview.chromium.org/2165643004/diff/80001/chrome/browser/chromeos/arc/arc_watchdog_service.cc File chrome/browser/chromeos/arc/arc_watchdog_service.cc (right): https://codereview.chromium.org/2165643004/diff/80001/chrome/browser/chromeos/arc/arc_watchdog_service.cc#newcode36 chrome/browser/chromeos/arc/arc_watchdog_service.cc:36: weak_factory_.GetWeakPtr())); On 2016/07/21 11:55:38, uekawa- wrote: > is it ...
4 years, 5 months ago (2016-07-22 08:16:55 UTC) #31
Polina Bondarenko
4 years, 5 months ago (2016-07-22 08:16:56 UTC) #32
Polina Bondarenko
Renamed mojom to enterprise_reporting.
4 years, 5 months ago (2016-07-22 14:43:09 UTC) #44
Luis Héctor Chávez
https://codereview.chromium.org/2165643004/diff/320001/chrome/browser/chromeos/arc/arc_auth_service.h File chrome/browser/chromeos/arc/arc_auth_service.h (right): https://codereview.chromium.org/2165643004/diff/320001/chrome/browser/chromeos/arc/arc_auth_service.h#newcode175 chrome/browser/chromeos/arc/arc_auth_service.h:175: void StopArc(); nit: add a comment https://codereview.chromium.org/2165643004/diff/320001/chrome/browser/chromeos/arc/arc_user_data_service.h File chrome/browser/chromeos/arc/arc_user_data_service.h ...
4 years, 5 months ago (2016-07-22 15:51:42 UTC) #49
Polina Bondarenko
https://codereview.chromium.org/2165643004/diff/320001/chrome/browser/chromeos/arc/arc_user_data_service.h File chrome/browser/chromeos/arc/arc_user_data_service.h (right): https://codereview.chromium.org/2165643004/diff/320001/chrome/browser/chromeos/arc/arc_user_data_service.h#newcode28 chrome/browser/chromeos/arc/arc_user_data_service.h:28: public InstanceHolder<mojom::EnterpriseReportingInstance>::Observer, On 2016/07/22 15:51:42, Luis Héctor Chávez wrote: ...
4 years, 5 months ago (2016-07-22 16:41:19 UTC) #50
Luis Héctor Chávez
On 2016/07/22 16:41:19, Polina Bondarenko wrote: > https://codereview.chromium.org/2165643004/diff/320001/chrome/browser/chromeos/arc/arc_user_data_service.h > File chrome/browser/chromeos/arc/arc_user_data_service.h (right): > > https://codereview.chromium.org/2165643004/diff/320001/chrome/browser/chromeos/arc/arc_user_data_service.h#newcode28 ...
4 years, 5 months ago (2016-07-22 16:46:37 UTC) #51
bartfab (slow)
On 2016/07/22 16:46:37, Luis Héctor Chávez wrote: > On 2016/07/22 16:41:19, Polina Bondarenko wrote: > ...
4 years, 5 months ago (2016-07-22 16:53:39 UTC) #52
Luis Héctor Chávez
On 2016/07/22 16:53:39, bartfab (slow) wrote: > On 2016/07/22 16:46:37, Luis Héctor Chávez wrote: > ...
4 years, 5 months ago (2016-07-22 17:00:03 UTC) #53
Luis Héctor Chávez
https://codereview.chromium.org/2165643004/diff/340001/chrome/browser/chromeos/arc/arc_user_data_service.cc File chrome/browser/chromeos/arc/arc_user_data_service.cc (right): https://codereview.chromium.org/2165643004/diff/340001/chrome/browser/chromeos/arc/arc_user_data_service.cc#newcode65 chrome/browser/chromeos/arc/arc_user_data_service.cc:65: FROM_HERE, base::Bind(&ArcUserDataService::RestartArc, IIUC this is racy. What needs to ...
4 years, 5 months ago (2016-07-22 17:00:16 UTC) #54
Polina Bondarenko
Fixed comments: - Added separated ArcEnterpriseReportingService. - Added callback to RemoveArcData. https://codereview.chromium.org/2165643004/diff/320001/chrome/browser/chromeos/arc/arc_auth_service.h File chrome/browser/chromeos/arc/arc_auth_service.h (right): ...
4 years, 5 months ago (2016-07-25 16:17:59 UTC) #60
Luis Héctor Chávez
https://codereview.chromium.org/2165643004/diff/400001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/2165643004/diff/400001/components/arc/arc_service_manager.cc#newcode113 components/arc/arc_service_manager.cc:113: services_.clear(); You need to also clear |arc_user_data_service_| here, since ...
4 years, 5 months ago (2016-07-25 16:47:57 UTC) #63
Polina Bondarenko
Fixed comments. https://codereview.chromium.org/2165643004/diff/400001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/2165643004/diff/400001/components/arc/arc_service_manager.cc#newcode113 components/arc/arc_service_manager.cc:113: services_.clear(); On 2016/07/25 16:47:57, Luis Héctor Chávez ...
4 years, 5 months ago (2016-07-25 17:19:44 UTC) #64
Polina Bondarenko
Hi Steven, stevenjb@chromium.org: Please review changes in chromeos/dbus/* files. I've added a callback to RemoveArcData() ...
4 years, 5 months ago (2016-07-25 17:23:32 UTC) #66
Polina Bondarenko
Hi Thomas, tsepez@chromium.org: Please review changes in components/arc/common/*.mojom files. Added new enterprise_reporting mojom interface.
4 years, 5 months ago (2016-07-25 17:35:47 UTC) #68
stevenjb
chromeos/dbus RS LGTM
4 years, 5 months ago (2016-07-25 17:37:03 UTC) #69
Luis Héctor Chávez
*/arc/* lgtm Thanks! https://codereview.chromium.org/2165643004/diff/440001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/2165643004/diff/440001/components/arc/arc_service_manager.cc#newcode114 components/arc/arc_service_manager.cc:114: arc_user_data_service_ = nullptr; nit: move this ...
4 years, 5 months ago (2016-07-25 17:40:34 UTC) #70
Tom Sepez
mojom LGTM
4 years, 5 months ago (2016-07-25 18:17:25 UTC) #73
Polina Bondarenko
Thanks everyone for a review! Also fixed FakeSessionManagerClient::RemoveArcData method according to OnArcMethod, that checks callback.is_null() ...
4 years, 5 months ago (2016-07-25 20:03:31 UTC) #79
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/2165643004/520001
4 years, 4 months ago (2016-07-26 11:51:42 UTC) #88
commit-bot: I haz the power
Committed patchset #18 (id:520001)
4 years, 4 months ago (2016-07-26 11:55:38 UTC) #90
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 11:57:20 UTC) #92
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/9282f59bec8693034cdf390927f41cfd2ea4c06c
Cr-Commit-Position: refs/heads/master@{#407771}

Powered by Google App Engine
This is Rietveld 408576698