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

Unified Diff: components/arc/arc_bridge_service_impl.h

Issue 2133653002: arc: Notify ARC instance failures via callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/arc/arc_bridge_service_impl.h
diff --git a/components/arc/arc_bridge_service_impl.h b/components/arc/arc_bridge_service_impl.h
index 60e6162785df7dda68a039cb0f5949141127ef47..d55f3d6f89d970bf36740656ac27cb96be1da77b 100644
--- a/components/arc/arc_bridge_service_impl.h
+++ b/components/arc/arc_bridge_service_impl.h
@@ -44,6 +44,8 @@ class ArcBridgeServiceImpl : public ArcBridgeService,
private:
friend class ArcBridgeTest;
FRIEND_TEST_ALL_PREFIXES(ArcBridgeTest, Restart);
+ FRIEND_TEST_ALL_PREFIXES(ArcBridgeTest, BootFailure);
+ FRIEND_TEST_ALL_PREFIXES(ArcBridgeTest, Crash);
// If all pre-requisites are true (ARC is available, it has been enabled, and
// the session has started), and ARC is stopped, start ARC. If ARC is running
@@ -55,7 +57,7 @@ class ArcBridgeServiceImpl : public ArcBridgeService,
// ArcBridgeBootstrap::Delegate:
void OnConnectionEstablished(mojom::ArcBridgeInstancePtr instance) override;
- void OnStopped() override;
+ void OnStopped(ArcBridgeBootstrap::StopReason reason) override;
// Called when the bridge channel is closed. This typically only happens when
// the ARC instance crashes. This is not called during shutdown.

Powered by Google App Engine
This is Rietveld 408576698