| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chromeos/dbus/debug_daemon_client.h" | 5 #include "chromeos/dbus/debug_daemon_client.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <unistd.h> | 8 #include <unistd.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 } | 510 } |
| 511 | 511 |
| 512 void OnQueryDebuggingFeatures( | 512 void OnQueryDebuggingFeatures( |
| 513 const QueryDevFeaturesCallback& callback, | 513 const QueryDevFeaturesCallback& callback, |
| 514 dbus::Response* response) { | 514 dbus::Response* response) { |
| 515 if (callback.is_null()) | 515 if (callback.is_null()) |
| 516 return; | 516 return; |
| 517 | 517 |
| 518 int32 feature_mask = DEV_FEATURE_NONE; | 518 int32 feature_mask = DEV_FEATURE_NONE; |
| 519 if (!response || !dbus::MessageReader(response).PopInt32(&feature_mask)) { | 519 if (!response || !dbus::MessageReader(response).PopInt32(&feature_mask)) { |
| 520 callback.Run(false, DEV_FEATURES_DISABLED); | 520 callback.Run(false, debugd::DevFeatureFlag::DEV_FEATURES_DISABLED); |
| 521 return; | 521 return; |
| 522 } | 522 } |
| 523 | 523 |
| 524 callback.Run(true, feature_mask); | 524 callback.Run(true, feature_mask); |
| 525 } | 525 } |
| 526 | 526 |
| 527 void OnRemoveRootfsVerification( | 527 void OnRemoveRootfsVerification( |
| 528 const EnableDebuggingCallback& callback, | 528 const EnableDebuggingCallback& callback, |
| 529 dbus::Response* response) { | 529 dbus::Response* response) { |
| 530 if (callback.is_null()) | 530 if (callback.is_null()) |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 DebugDaemonClient::EmptyStopSystemTracingCallback() { | 619 DebugDaemonClient::EmptyStopSystemTracingCallback() { |
| 620 return base::Bind(&EmptyStopSystemTracingCallbackBody); | 620 return base::Bind(&EmptyStopSystemTracingCallbackBody); |
| 621 } | 621 } |
| 622 | 622 |
| 623 // static | 623 // static |
| 624 DebugDaemonClient* DebugDaemonClient::Create() { | 624 DebugDaemonClient* DebugDaemonClient::Create() { |
| 625 return new DebugDaemonClientImpl(); | 625 return new DebugDaemonClientImpl(); |
| 626 } | 626 } |
| 627 | 627 |
| 628 } // namespace chromeos | 628 } // namespace chromeos |
| OLD | NEW |