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

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

Issue 2436763004: More graceful shutdown for ArcSession. (Closed)
Patch Set: Add StopArcInstance Created 4 years, 2 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_session.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/test/fake_arc_session.cc
diff --git a/components/arc/test/fake_arc_session.cc b/components/arc/test/fake_arc_session.cc
index 486068e7ebe633ebe3ebf909657ab74b70e40c34..5ebc1e04a0214e260cf8287c51f339647aebdf23 100644
--- a/components/arc/test/fake_arc_session.cc
+++ b/components/arc/test/fake_arc_session.cc
@@ -29,6 +29,10 @@ void FakeArcSession::Stop() {
StopWithReason(ArcBridgeService::StopReason::SHUTDOWN);
}
+void FakeArcSession::OnShutdown() {
+ StopWithReason(ArcBridgeService::StopReason::SHUTDOWN);
+}
+
void FakeArcSession::StopWithReason(ArcBridgeService::StopReason reason) {
for (auto& observer : observer_list_)
observer.OnStopped(reason);
« no previous file with comments | « components/arc/test/fake_arc_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698