diff options
author | jamescook <jamescook@chromium.org> | 2015-02-03 17:28:35 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-04 01:29:30 +0000 |
commit | cbdd22afe6938d48ccc265e2bd4e614a64383965 (patch) | |
tree | 8dfb785dd6a74d7d0409237e5a3d0056e40dc7ea /extensions/shell/common | |
parent | c85b8aba626c826fb6860e95b111d7247d987cc0 (diff) | |
download | chromium_src-cbdd22afe6938d48ccc265e2bd4e614a64383965.zip chromium_src-cbdd22afe6938d48ccc265e2bd4e614a64383965.tar.gz chromium_src-cbdd22afe6938d48ccc265e2bd4e614a64383965.tar.bz2 |
cros: Read privetd Wi-Fi bootstrap status over D-Bus
Use the D-Bus library to automatically reads the property
state at startup and monitor it for changes.
Wrap it in a chrome.shell API for manual testing. This will
be removed once bootstrap is wired into OOBE.
BUG=428848
TEST=app_shell_unittests, manual tests with app in the bug
Review URL: https://codereview.chromium.org/719713004
Cr-Commit-Position: refs/heads/master@{#314462}
Diffstat (limited to 'extensions/shell/common')
-rw-r--r-- | extensions/shell/common/api/shell_gcd.idl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/shell/common/api/shell_gcd.idl b/extensions/shell/common/api/shell_gcd.idl index 7f2175a..65c80300 100644 --- a/extensions/shell/common/api/shell_gcd.idl +++ b/extensions/shell/common/api/shell_gcd.idl @@ -5,12 +5,20 @@ // Setup related functions for a Google Cloud Devices (GCD) target device // running on Chrome OS Core. The actual bootstrapping and GCD registration is // handled by the privetd and buffet system daemons. +// +// TODO(jamescook): This API exists only for manual testing of GCD in app_shell. +// Delete it when GCD setup is integrated into OOBE. namespace shell.gcd { callback PingCallback = void(boolean success); + callback StateCallback = void(DOMString state); interface Functions { // Attempts to ping the daemon via D-Bus. static void ping(PingCallback callback); + + // Returns the Wi-Fi bootstrap state. Return values are found in + // platform2/privetd/dbus_bindings/org.chromium.privetd.Manager.xml. + static void getWiFiBootstrapState(StateCallback callback); }; }; |