diff options
author | xiaohuic <xiaohuic@chromium.org> | 2015-02-17 10:04:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-17 18:05:33 +0000 |
commit | 4b5aef62bbbf566031efd57921bf2a5ef5498cef (patch) | |
tree | 8bdb0effb1be41a38c808da3cb9b59487fd27c0e /chromeos/dbus/debug_daemon_client.h | |
parent | 2ce480a20c0487af08240bd03865f824d38edd2c (diff) | |
download | chromium_src-4b5aef62bbbf566031efd57921bf2a5ef5498cef.zip chromium_src-4b5aef62bbbf566031efd57921bf2a5ef5498cef.tar.gz chromium_src-4b5aef62bbbf566031efd57921bf2a5ef5498cef.tar.bz2 |
Refactor debug_daemon_client.h to use debugd::DevFeatureFlag
debug_daemon_client.h used to define its own duplicate enum. This cl
unifies it to use the enum defined in debugd.
BUG=444146
TEST=locally on chromebook.
Review URL: https://codereview.chromium.org/925903006
Cr-Commit-Position: refs/heads/master@{#316607}
Diffstat (limited to 'chromeos/dbus/debug_daemon_client.h')
-rw-r--r-- | chromeos/dbus/debug_daemon_client.h | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/chromeos/dbus/debug_daemon_client.h b/chromeos/dbus/debug_daemon_client.h index 37cda58..85b1ccd 100644 --- a/chromeos/dbus/debug_daemon_client.h +++ b/chromeos/dbus/debug_daemon_client.h @@ -5,14 +5,15 @@ #ifndef CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ #define CHROMEOS_DBUS_DEBUG_DAEMON_CLIENT_H_ +#include <map> + #include "base/callback.h" #include "base/files/file.h" #include "base/memory/ref_counted_memory.h" #include "base/task_runner.h" #include "chromeos/chromeos_export.h" #include "chromeos/dbus/dbus_client.h" - -#include <map> +#include "third_party/cros_system_api/dbus/service_constants.h" namespace metrics { class PerfDataProto; @@ -155,21 +156,12 @@ class CHROMEOS_EXPORT DebugDaemonClient : public DBusClient { const std::string& password, const EnableDebuggingCallback& callback) = 0; - enum DebuggingFeature { - DEV_FEATURE_NONE = 0, - DEV_FEATURES_DISABLED = 1 << 0, - DEV_FEATURE_ROOTFS_VERIFICATION_REMOVED = 1 << 1, - DEV_FEATURE_BOOT_FROM_USB_ENABLED = 1 << 2, - DEV_FEATURE_SSH_SERVER_CONFIGURED = 1 << 3, - DEV_FEATURE_DEV_MODE_ROOT_PASSWORD_SET = 1 << 4, - DEV_FEATURE_SYSTEM_ROOT_PASSWORD_SET = 1 << 5, - DEV_FEATURE_ALL_ENABLED = - DEV_FEATURE_ROOTFS_VERIFICATION_REMOVED | - DEV_FEATURE_BOOT_FROM_USB_ENABLED | - DEV_FEATURE_SSH_SERVER_CONFIGURED | - DEV_FEATURE_DEV_MODE_ROOT_PASSWORD_SET | - DEV_FEATURE_DEV_MODE_ROOT_PASSWORD_SET, - }; + static const int DEV_FEATURE_NONE = 0; + static const int DEV_FEATURE_ALL_ENABLED = + debugd::DevFeatureFlag::DEV_FEATURE_ROOTFS_VERIFICATION_REMOVED | + debugd::DevFeatureFlag::DEV_FEATURE_BOOT_FROM_USB_ENABLED | + debugd::DevFeatureFlag::DEV_FEATURE_SSH_SERVER_CONFIGURED | + debugd::DevFeatureFlag::DEV_FEATURE_DEV_MODE_ROOT_PASSWORD_SET; // Called once QueryDebuggingFeatures() is complete. |succeeded| will be true // if debugging features have been successfully enabled. |feature_mask| is a |