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

Unified Diff: chrome/browser/signin/easy_unlock_service.cc

Issue 511473002: Remove implicit conversions from scoped_refptr to T* in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move download out Created 6 years, 4 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: chrome/browser/signin/easy_unlock_service.cc
diff --git a/chrome/browser/signin/easy_unlock_service.cc b/chrome/browser/signin/easy_unlock_service.cc
index b9240aac38ecb933303877d3fd8ac34f247ecf4a..31afa1123cd9895dfea2107e8b1adf0056a71e38 100644
--- a/chrome/browser/signin/easy_unlock_service.cc
+++ b/chrome/browser/signin/easy_unlock_service.cc
@@ -70,7 +70,7 @@ class EasyUnlockService::BluetoothDetector
}
virtual ~BluetoothDetector() {
- if (adapter_)
+ if (adapter_.get())
adapter_->RemoveObserver(this);
}
@@ -83,9 +83,7 @@ class EasyUnlockService::BluetoothDetector
weak_ptr_factory_.GetWeakPtr()));
}
- bool IsPresent() const {
- return adapter_ && adapter_->IsPresent();
- }
+ bool IsPresent() const { return adapter_.get() && adapter_->IsPresent(); }
// device::BluetoothAdapter::Observer:
virtual void AdapterPresentChanged(device::BluetoothAdapter* adapter,
« no previous file with comments | « chrome/browser/sessions/session_data_deleter.cc ('k') | chrome/browser/ssl/ssl_error_classification_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698