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

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

Issue 2720303002: Do nothing on OnSessionStopped if ARC is being restarted. (Closed)
Patch Set: Address comments. 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
« 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 493fe870f0815f9acd371e723dc8b578a2ad1b0c..93a999674e33a13ccc2f9f8de326bcb1605bdd8f 100644
--- a/components/arc/test/fake_arc_session.cc
+++ b/components/arc/test/fake_arc_session.cc
@@ -26,20 +26,19 @@ void FakeArcSession::Start() {
}
void FakeArcSession::Stop() {
- StopWithReason(ArcSessionObserver::StopReason::SHUTDOWN);
+ StopWithReason(ArcStopReason::SHUTDOWN);
}
void FakeArcSession::OnShutdown() {
- StopWithReason(ArcSessionObserver::StopReason::SHUTDOWN);
+ StopWithReason(ArcStopReason::SHUTDOWN);
}
-void FakeArcSession::StopWithReason(ArcSessionObserver::StopReason reason) {
+void FakeArcSession::StopWithReason(ArcStopReason reason) {
for (auto& observer : observer_list_)
observer.OnSessionStopped(reason);
}
-void FakeArcSession::EnableBootFailureEmulation(
- ArcSessionObserver::StopReason reason) {
+void FakeArcSession::EnableBootFailureEmulation(ArcStopReason reason) {
DCHECK(!boot_failure_emulation_enabled_);
DCHECK(!boot_suspended_);
« 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