Descriptionarc: 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. #Messages
Total messages: 32 (14 generated)
|