| 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 4877b4cab9f1dff469843c863aea4f51e89dbde7..1504f2177d08800467af95b34d74ceda3510a82b 100644
|
| --- a/chrome/browser/signin/chrome_proximity_auth_client.cc
|
| +++ b/chrome/browser/signin/chrome_proximity_auth_client.cc
|
| @@ -6,9 +6,12 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_window.h"
|
| #include "chrome/browser/signin/chrome_proximity_auth_client.h"
|
| +#include "chrome/browser/signin/easy_unlock_service.h"
|
| #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) {
|
| }
|
| @@ -24,3 +27,21 @@ std::string ChromeProximityAuthClient::GetAuthenticatedUsername() const {
|
| DCHECK(signin_manager);
|
| 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* 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);
|
| +}
|
|
|