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

Unified Diff: chromeos/dbus/session_manager_client.h

Issue 2397863003: Move free disk space check to session_manager. (Closed)
Patch Set: Address comments. 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 | « chromeos/dbus/mock_session_manager_client.h ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/session_manager_client.h
diff --git a/chromeos/dbus/session_manager_client.h b/chromeos/dbus/session_manager_client.h
index ee142aad64cd384fafa03c44ef9c46683b5c2d7c..aff3d32fbf3b04dba0fc390b92a719a1fc98daba 100644
--- a/chromeos/dbus/session_manager_client.h
+++ b/chromeos/dbus/session_manager_client.h
@@ -233,10 +233,16 @@ class CHROMEOS_EXPORT SessionManagerClient : public DBusClient {
// blocks Android ACTION_BOOT_COMPLETED broadcast for 3rd party applications.
// Upon completion, invokes |callback| with the result; true on success, false
// on failure (either session manager failed to start an instance or session
- // manager can not be reached).
+ // manager can not be reached). On Failure, the error is passed to the second
+ // argument of the callback. The error may be empty even on failure, if the
+ // reponse is not received at all. The error looks like, e.g.,
+ // "org.freedesktop.DBus.Error.ServiceUnknown".
+ // TODO(hidehiko): Replace "typedef" by "using".
+ typedef base::Callback<void(bool is_succeeded, const std::string& error)>
hashimoto 2016/10/06 08:36:59 nit: "bool success" would be more consistent with
hidehiko 2016/10/06 08:40:22 Ah, right. Done.
+ StartArcInstanceCallback;
virtual void StartArcInstance(const cryptohome::Identification& cryptohome_id,
bool disable_boot_completed_broadcast,
- const ArcCallback& callback) = 0;
+ const StartArcInstanceCallback& callback) = 0;
// Asynchronously stops the ARC instance. Upon completion, invokes
// |callback| with the result; true on success, false on failure (either
« no previous file with comments | « chromeos/dbus/mock_session_manager_client.h ('k') | chromeos/dbus/session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698