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

Issue 2133653002: arc: Notify ARC instance failures via callbacks. (Closed)

Created:
4 years, 5 months ago by Shuhei Takahashi
Modified:
4 years, 5 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Notify ARC instance failures via callbacks. StopReason is passed to following observer methods: - ArcBridgeBootstrap::Observer::OnStopped - ArcBridgeService::Observer::OnBridgeStopped Those callbacks can now tell the reason the bridge stopped. I am planning to use this soon to show notifications on failures. See the bug entry for more details. BUG=chromium:625923 TEST=components_unittests --gtest_filter=ArcBridgeTest.* TEST=Manually verified that ARC boots. Committed: https://crrev.com/0c9dabff67eaefb515e9bc39299e33811915ffb4 Cr-Commit-Position: refs/heads/master@{#405241}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 13

Patch Set 5 : Address comments by lhchavez/hidehiko. #

Patch Set 6 : . #

Total comments: 4

Patch Set 7 : Address lhchavez's comments + improve unit test. #

Total comments: 2

Patch Set 8 : Address hidehiko's comments. #

Total comments: 2

Patch Set 9 : Address hidehiko's comment. #

Patch Set 10 : Rebased to master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -37 lines) Patch
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_list_prefs.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
M components/arc/arc_bridge_bootstrap.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M components/arc/arc_bridge_bootstrap.cc View 1 2 3 4 5 6 7 11 chunks +41 lines, -11 lines 0 comments Download
M components/arc/arc_bridge_service.h View 1 2 3 4 5 6 7 8 9 5 chunks +24 lines, -2 lines 0 comments Download
M components/arc/arc_bridge_service.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -3 lines 0 comments Download
M components/arc/arc_bridge_service_impl.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M components/arc/arc_bridge_service_impl.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M components/arc/arc_bridge_service_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +35 lines, -2 lines 0 comments Download
M components/arc/test/fake_arc_bridge_bootstrap.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M components/arc/test/fake_arc_bridge_bootstrap.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -3 lines 0 comments Download
M components/arc/test/fake_arc_bridge_instance.h View 1 2 3 4 5 6 8 2 chunks +3 lines, -3 lines 0 comments Download
M components/arc/test/fake_arc_bridge_instance.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M components/arc/user_data/arc_user_data_service.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/arc/user_data/arc_user_data_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (14 generated)
Shuhei Takahashi
lhchavez, hidehiko: PTAL
4 years, 5 months ago (2016-07-08 10:17:27 UTC) #6
Luis Héctor Chávez
https://codereview.chromium.org/2133653002/diff/60001/components/arc/arc_bridge_bootstrap.h File components/arc/arc_bridge_bootstrap.h (right): https://codereview.chromium.org/2133653002/diff/60001/components/arc/arc_bridge_bootstrap.h#newcode27 components/arc/arc_bridge_bootstrap.h:27: // Called when a connection with ARC instance has ...
4 years, 5 months ago (2016-07-08 18:01:02 UTC) #7
hidehiko
My initial scan (minus what Luis said). https://codereview.chromium.org/2133653002/diff/60001/components/arc/arc_bridge_service_unittest.cc File components/arc/arc_bridge_service_unittest.cc (right): https://codereview.chromium.org/2133653002/diff/60001/components/arc/arc_bridge_service_unittest.cc#newcode153 components/arc/arc_bridge_service_unittest.cc:153: ASSERT_EQ(ArcBridgeService::AbortReason::CRASH, abort_reason_); ...
4 years, 5 months ago (2016-07-11 05:40:08 UTC) #8
Shuhei Takahashi
PTAL https://codereview.chromium.org/2133653002/diff/60001/components/arc/arc_bridge_bootstrap.h File components/arc/arc_bridge_bootstrap.h (right): https://codereview.chromium.org/2133653002/diff/60001/components/arc/arc_bridge_bootstrap.h#newcode27 components/arc/arc_bridge_bootstrap.h:27: // Called when a connection with ARC instance ...
4 years, 5 months ago (2016-07-11 08:25:19 UTC) #9
Luis Héctor Chávez
Just nits at this point, so deferring to hidehiko@ to avoid further cross-timezone roundtrips. https://codereview.chromium.org/2133653002/diff/60001/components/arc/arc_bridge_service.h ...
4 years, 5 months ago (2016-07-11 22:28:50 UTC) #10
Shuhei Takahashi
hidehiko: PTAL Thanks for reviewing, Luis. https://codereview.chromium.org/2133653002/diff/100001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/2133653002/diff/100001/components/arc/arc_bridge_service.h#newcode67 components/arc/arc_bridge_service.h:67: NO_ERROR, On 2016/07/11 ...
4 years, 5 months ago (2016-07-12 06:13:57 UTC) #11
hidehiko
LGTM with minor comment. Sorry for the delay. Please update your commit message, before sending ...
4 years, 5 months ago (2016-07-12 17:01:49 UTC) #12
Shuhei Takahashi
hidehiko: PTAL Thanks for reviewing. Could you take another look for sanity check? https://codereview.chromium.org/2133653002/diff/120001/components/arc/arc_bridge_bootstrap.h File ...
4 years, 5 months ago (2016-07-13 04:49:38 UTC) #14
hidehiko
Still LGTM. https://codereview.chromium.org/2133653002/diff/140001/components/arc/test/fake_arc_bridge_instance.h File components/arc/test/fake_arc_bridge_instance.h (right): https://codereview.chromium.org/2133653002/diff/140001/components/arc/test/fake_arc_bridge_instance.h#newcode21 components/arc/test/fake_arc_bridge_instance.h:21: virtual void OnStopped(StopReason reason) = 0; Optional: ...
4 years, 5 months ago (2016-07-13 04:55:20 UTC) #15
Shuhei Takahashi
Thanks! https://codereview.chromium.org/2133653002/diff/140001/components/arc/test/fake_arc_bridge_instance.h File components/arc/test/fake_arc_bridge_instance.h (right): https://codereview.chromium.org/2133653002/diff/140001/components/arc/test/fake_arc_bridge_instance.h#newcode21 components/arc/test/fake_arc_bridge_instance.h:21: virtual void OnStopped(StopReason reason) = 0; On 2016/07/13 ...
4 years, 5 months ago (2016-07-13 05:01:27 UTC) #16
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/2133653002/160001
4 years, 5 months ago (2016-07-13 05:02:22 UTC) #19
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/34871) ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 5 months ago (2016-07-13 05:04:30 UTC) #21
Shuhei Takahashi
msw: PTAL for chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc Rebased to tot, and now I need to touch chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc.
4 years, 5 months ago (2016-07-13 06:45:19 UTC) #23
msw
rubber stamp lgtm
4 years, 5 months ago (2016-07-13 16:45:00 UTC) #24
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/2133653002/180001
4 years, 5 months ago (2016-07-13 17:17:12 UTC) #27
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 5 months ago (2016-07-13 19:54:42 UTC) #29
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 19:55:56 UTC) #30
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 19:57:50 UTC) #32
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/0c9dabff67eaefb515e9bc39299e33811915ffb4
Cr-Commit-Position: refs/heads/master@{#405241}

Powered by Google App Engine
This is Rietveld 408576698