diff options
author | xiyuan <xiyuan@chromium.org> | 2014-12-10 22:14:15 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-11 06:15:30 +0000 |
commit | 329a51c5c9287c67f8e9f355d68aa9b16d2fb44b (patch) | |
tree | 2b775d75f408faf488fa99ad246c758aa74f939c /chromeos/dbus/debug_daemon_client.h | |
parent | 446b1cb067d74fa813f30abed54c3f8b481a1ba1 (diff) | |
download | chromium_src-329a51c5c9287c67f8e9f355d68aa9b16d2fb44b.zip chromium_src-329a51c5c9287c67f8e9f355d68aa9b16d2fb44b.tar.gz chromium_src-329a51c5c9287c67f8e9f355d68aa9b16d2fb44b.tar.bz2 |
Wait for debugd before showing enable-dev-features UI.
- Add WaitForServiceToBeAvailable to DebugDaemonClient;
- Wait for debugd before showing enable-dev-features UI;
BUG=440506
Review URL: https://codereview.chromium.org/793863002
Cr-Commit-Position: refs/heads/master@{#307869}
Diffstat (limited to 'chromeos/dbus/debug_daemon_client.h')
-rw-r--r-- | chromeos/dbus/debug_daemon_client.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chromeos/dbus/debug_daemon_client.h b/chromeos/dbus/debug_daemon_client.h index fd8bc83..b864e93 100644 --- a/chromeos/dbus/debug_daemon_client.h +++ b/chromeos/dbus/debug_daemon_client.h @@ -188,6 +188,14 @@ class CHROMEOS_EXPORT DebugDaemonClient : public DBusClient { // Trigger uploading of crashes. virtual void UploadCrashes() = 0; + // A callback for WaitForServiceToBeAvailable(). + typedef base::Callback<void(bool service_is_ready)> + WaitForServiceToBeAvailableCallback; + + // Runs the callback as soon as the service becomes available. + virtual void WaitForServiceToBeAvailable( + const WaitForServiceToBeAvailableCallback& callback) = 0; + // Factory function, creates a new instance and returns ownership. // For normal usage, access the singleton via DBusThreadManager::Get(). static DebugDaemonClient* Create(); |