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

Unified Diff: components/arc/test/fake_arc_bridge_bootstrap.cc

Issue 2133653002: arc: Notify ARC instance failures via callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased to master. 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
« no previous file with comments | « components/arc/test/fake_arc_bridge_bootstrap.h ('k') | components/arc/test/fake_arc_bridge_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/test/fake_arc_bridge_bootstrap.cc
diff --git a/components/arc/test/fake_arc_bridge_bootstrap.cc b/components/arc/test/fake_arc_bridge_bootstrap.cc
index cd05697100f6719767cca27677a7695af94e2821..054ebad5b402fe32ad523cc944bdd527c240bc6e 100644
--- a/components/arc/test/fake_arc_bridge_bootstrap.cc
+++ b/components/arc/test/fake_arc_bridge_bootstrap.cc
@@ -28,11 +28,13 @@ void FakeArcBridgeBootstrap::Start() {
void FakeArcBridgeBootstrap::Stop() {
DCHECK(delegate_);
instance_->Unbind();
- delegate_->OnStopped();
+ delegate_->OnStopped(ArcBridgeService::StopReason::SHUTDOWN);
}
-void FakeArcBridgeBootstrap::OnCrashed() {
- Stop();
+void FakeArcBridgeBootstrap::OnStopped(ArcBridgeService::StopReason reason) {
+ DCHECK(delegate_);
+ instance_->Unbind();
+ delegate_->OnStopped(reason);
}
} // namespace arc
« no previous file with comments | « components/arc/test/fake_arc_bridge_bootstrap.h ('k') | components/arc/test/fake_arc_bridge_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698