Index: components/proximity_auth/screenlock_bridge.h |
diff --git a/components/proximity_auth/screenlock_bridge.h b/components/proximity_auth/screenlock_bridge.h |
index f9a47a45fcd10f9d0e62b6ec5366a2b269054a13..c32671f7b80a18f48a9669c80f9eb48940d6f781 100644 |
--- a/components/proximity_auth/screenlock_bridge.h |
+++ b/components/proximity_auth/screenlock_bridge.h |
@@ -14,10 +14,6 @@ |
#include "base/strings/string16.h" |
#include "base/values.h" |
-namespace content { |
-class BrowserContext; |
-} // namespace content |
- |
namespace proximity_auth { |
class ProximityAuthClient; |
@@ -29,8 +25,7 @@ class ProximityAuthClient; |
// used solely for the lock screen anymore. |
class ScreenlockBridge { |
public: |
- // |client| is not owned and must outlive this object. |
- explicit ScreenlockBridge(ProximityAuthClient* client); |
+ ScreenlockBridge(); |
~ScreenlockBridge(); |
// User pod icons supported by lock screen / signin screen UI. |
@@ -165,8 +160,8 @@ class ScreenlockBridge { |
void SetFocusedUser(const std::string& user_id); |
bool IsLocked() const; |
- void Lock(content::BrowserContext* browser_context); |
- void Unlock(content::BrowserContext* browser_context); |
+ void Lock(ProximityAuthClient* client); |
+ void Unlock(ProximityAuthClient* client); |
void AddObserver(Observer* observer); |
void RemoveObserver(Observer* observer); |
@@ -176,7 +171,6 @@ class ScreenlockBridge { |
std::string focused_user_id() const { return focused_user_id_; } |
private: |
- ProximityAuthClient* client_; // Not owned. Must outlive this object. |
LockHandler* lock_handler_; // Not owned |
// The last focused user's id. |
std::string focused_user_id_; |