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

Unified Diff: device/bluetooth/bluetooth_adapter_factory.cc

Issue 1909263002: Replace safe-bool idiom with explicit WeakPtr::operator bool() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluetooth_adapter_factory.cc
diff --git a/device/bluetooth/bluetooth_adapter_factory.cc b/device/bluetooth/bluetooth_adapter_factory.cc
index 088f9a032b6724a22bd634e356f2c92589682480..9a0b27b54dad76ed3dd2c7663d37125adf5bd540 100644
--- a/device/bluetooth/bluetooth_adapter_factory.cc
+++ b/device/bluetooth/bluetooth_adapter_factory.cc
@@ -105,7 +105,7 @@ void BluetoothAdapterFactory::SetAdapterForTesting(
// static
bool BluetoothAdapterFactory::HasSharedInstanceForTesting() {
- return default_adapter.Get();
+ return !!default_adapter.Get();
Nico 2016/06/02 21:31:02 .
}
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698