| Index: chrome/browser/signin/chrome_proximity_auth_client.cc
|
| diff --git a/chrome/browser/signin/chrome_proximity_auth_client.cc b/chrome/browser/signin/chrome_proximity_auth_client.cc
|
| index 2c14100e2965c0c70166755e305f96baf4fd8a88..4241e6324fc0424ae5a523c363a637713aa1c7ce 100644
|
| --- a/chrome/browser/signin/chrome_proximity_auth_client.cc
|
| +++ b/chrome/browser/signin/chrome_proximity_auth_client.cc
|
| @@ -11,6 +11,8 @@
|
| #include "chrome/browser/signin/signin_manager_factory.h"
|
| #include "components/signin/core/browser/signin_manager_base.h"
|
|
|
| +using proximity_auth::ScreenlockState;
|
| +
|
| ChromeProximityAuthClient::ChromeProximityAuthClient(Profile* profile)
|
| : profile_(profile) {
|
| }
|
| @@ -27,6 +29,20 @@ std::string ChromeProximityAuthClient::GetAuthenticatedUsername() const {
|
| return signin_manager->GetAuthenticatedUsername();
|
| }
|
|
|
| +void ChromeProximityAuthClient::UpdateScreenlockState(ScreenlockState state) {
|
| + EasyUnlockService* service = EasyUnlockService::Get(profile_);
|
| + if (service)
|
| + service->UpdateScreenlockState(state);
|
| +}
|
| +
|
| void ChromeProximityAuthClient::FinalizeUnlock(bool success) {
|
| - EasyUnlockService::Get(profile_)->FinalizeUnlock(success);
|
| + EasyUnlockService* service = EasyUnlockService::Get(profile_);
|
| + if (service)
|
| + service->FinalizeUnlock(success);
|
| +}
|
| +
|
| +void ChromeProximityAuthClient::FinalizeSignin(const std::string& secret) {
|
| + EasyUnlockService* service = EasyUnlockService::Get(profile_);
|
| + if (service)
|
| + service->FinalizeSignin(secret);
|
| }
|
|
|