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

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: . 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/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..789bdb81cec647c064d6611efdf2b6fc494fb793 100644
--- a/components/arc/test/fake_arc_bridge_bootstrap.cc
+++ b/components/arc/test/fake_arc_bridge_bootstrap.cc
@@ -32,7 +32,10 @@ void FakeArcBridgeBootstrap::Stop() {
}
void FakeArcBridgeBootstrap::OnCrashed() {
- Stop();
+ DCHECK(delegate_);
+ instance_->Unbind();
+ delegate_->OnAborting(AbortReason::CRASH);
+ delegate_->OnStopped();
}
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698