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

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

Issue 1017563003: Hook up AppLifeTimeManager::Observer to turn off discoverability for Smart Lock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e974e90cbe89852cd55abf00c4a878d58bc0e882..74b3da4b63ea76d67589f8f73afe9ba837a5e57b 100644
--- a/chrome/browser/signin/easy_unlock_service.cc
+++ b/chrome/browser/signin/easy_unlock_service.cc
@@ -90,11 +90,15 @@ class EasyUnlockService::BluetoothDetector
explicit BluetoothDetector(EasyUnlockService* service)
: service_(service),
weak_ptr_factory_(this) {
+ apps::AppLifetimeMonitorFactory::GetForProfile(service_->profile())
+ ->AddObserver(this);
}
~BluetoothDetector() override {
if (adapter_.get())
adapter_->RemoveObserver(this);
+ apps::AppLifetimeMonitorFactory::GetForProfile(service_->profile())
+ ->RemoveObserver(this);
}
void Initialize() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698