apmanager: rename Device.InUsed to Device.InUse
This is a grammar nit, but it seems wise to deal with it before there
are too many clients depending on it.
BUG=none
TEST=FEATURES=test emerge-gizmo apmanager
Change-Id: I94ff5635c2ab878feed5ef91e418cdf1b19cc290
Reviewed-on: https://chromium-review.googlesource.com/296790
Commit-Ready: Garret Kelly <gdk@chromium.org>
Tested-by: Garret Kelly <gdk@chromium.org>
Reviewed-by: Zeping Qiu <zqiu@chromium.org>
diff --git a/device.cc b/device.cc
index 34cf4c5..29a50da 100644
--- a/device.cc
+++ b/device.cc
@@ -37,7 +37,7 @@
manager_(manager),
supports_ap_mode_(false) {
SetDeviceName(device_name);
- SetInUsed(false);
+ SetInUse(false);
}
Device::~Device() {}
@@ -152,7 +152,7 @@
}
bool Device::ClaimDevice(bool full_control) {
- if (GetInUsed()) {
+ if (GetInUse()) {
LOG(ERROR) << "Failed to claim device [" << GetDeviceName()
<< "]: already in used.";
return false;
@@ -167,12 +167,12 @@
manager_->ClaimInterface(GetPreferredApInterface());
claimed_interfaces_.insert(GetPreferredApInterface());
}
- SetInUsed(true);
+ SetInUse(true);
return true;
}
bool Device::ReleaseDevice() {
- if (!GetInUsed()) {
+ if (!GetInUse()) {
LOG(ERROR) << "Failed to release device [" << GetDeviceName()
<< "]: not currently in-used.";
return false;
@@ -182,7 +182,7 @@
manager_->ReleaseInterface(interface);
}
claimed_interfaces_.clear();
- SetInUsed(false);
+ SetInUse(false);
return true;
}