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

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

Issue 2720303002: Do nothing on OnSessionStopped if ARC is being restarted. (Closed)
Patch Set: Created 3 years, 10 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_session.cc
diff --git a/components/arc/test/fake_arc_session.cc b/components/arc/test/fake_arc_session.cc
index 493fe870f0815f9acd371e723dc8b578a2ad1b0c..887e0453bf6c1d5d477c255fb290aaaf5c6806a2 100644
--- a/components/arc/test/fake_arc_session.cc
+++ b/components/arc/test/fake_arc_session.cc
@@ -18,7 +18,7 @@ FakeArcSession::~FakeArcSession() = default;
void FakeArcSession::Start() {
if (boot_failure_emulation_enabled_) {
for (auto& observer : observer_list_)
- observer.OnSessionStopped(boot_failure_reason_);
+ observer.OnSessionStopped(boot_failure_reason_, false);
} else if (!boot_suspended_) {
for (auto& observer : observer_list_)
observer.OnSessionReady();
@@ -35,7 +35,7 @@ void FakeArcSession::OnShutdown() {
void FakeArcSession::StopWithReason(ArcSessionObserver::StopReason reason) {
for (auto& observer : observer_list_)
- observer.OnSessionStopped(reason);
+ observer.OnSessionStopped(reason, false);
}
void FakeArcSession::EnableBootFailureEmulation(
« components/arc/arc_session_runner.cc ('K') | « components/arc/arc_session_runner_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698