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

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

Issue 2729503007: Remove Profile usage from //apps (Closed)
Patch Set: deps Created 3 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
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 481380f189b04eed506c0cd72deac140326b7c93..806e949462d1633fe1737fad4cbc982a3a952c39 100644
--- a/chrome/browser/signin/easy_unlock_service.cc
+++ b/chrome/browser/signin/easy_unlock_service.cc
@@ -107,14 +107,14 @@ class EasyUnlockService::BluetoothDetector
explicit BluetoothDetector(EasyUnlockService* service)
: service_(service),
weak_ptr_factory_(this) {
- apps::AppLifetimeMonitorFactory::GetForProfile(service_->profile())
+ apps::AppLifetimeMonitorFactory::GetForBrowserContext(service_->profile())
->AddObserver(this);
}
~BluetoothDetector() override {
if (adapter_.get())
adapter_->RemoveObserver(this);
- apps::AppLifetimeMonitorFactory::GetForProfile(service_->profile())
+ apps::AppLifetimeMonitorFactory::GetForBrowserContext(service_->profile())
->RemoveObserver(this);
}
@@ -149,13 +149,15 @@ class EasyUnlockService::BluetoothDetector
}
// apps::AppLifetimeMonitor::Observer:
- void OnAppDeactivated(Profile* profile, const std::string& app_id) override {
+ void OnAppDeactivated(content::BrowserContext* context,
+ const std::string& app_id) override {
// TODO(tengs): Refactor the lifetime management to EasyUnlockAppManager.
if (app_id == extension_misc::kEasyUnlockAppId)
TurnOffBluetoothDiscoverability();
}
- void OnAppStop(Profile* profile, const std::string& app_id) override {
+ void OnAppStop(content::BrowserContext* context,
+ const std::string& app_id) override {
// TODO(tengs): Refactor the lifetime management to EasyUnlockAppManager.
if (app_id == extension_misc::kEasyUnlockAppId)
TurnOffBluetoothDiscoverability();
« no previous file with comments | « chrome/browser/extensions/extension_system_impl.cc ('k') | chrome/browser/signin/easy_unlock_service_regular.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698