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

Side by Side Diff: chromeos/dbus/debug_daemon_client.cc

Issue 925903006: Refactor debug_daemon_client.h to use debugd::DevFeatureFlag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « chromeos/dbus/debug_daemon_client.h ('k') | chromeos/dbus/fake_debug_daemon_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromeos/dbus/debug_daemon_client.h ('k') | chromeos/dbus/fake_debug_daemon_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698