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

Unified Diff: session_manager_service.h

Issue 661224: Stop infinite restarting (Closed)
Patch Set: Created 10 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: session_manager_service.h
diff --git a/session_manager_service.h b/session_manager_service.h
index 997ef456fe8d5ecaca5ba6dba198cc686f22d168..37f89aa00d204d16581ee6209f9a22af23aafe7f 100644
--- a/session_manager_service.h
+++ b/session_manager_service.h
@@ -80,6 +80,10 @@ class SessionManagerService : public chromeos::dbus::AbstractDbusService {
// Returns true if |child_job_| believes it should be run.
bool should_run_child() { return child_job_->ShouldRun(); }
+ // Returns true if |child_job_| believes it should be stopped.
+ // If the child believes it should be stopped (as opposed to not run anymore)
+ // we actually exit the Service as well.
+ bool should_stop_child() { return child_job_->ShouldStop(); }
// Fork, then call child_job_->Run() in the child and set a
// babysitter in the parent's glib default context that calls
« child_job.cc ('K') | « mock_child_job.h ('k') | session_manager_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698