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

Unified Diff: chrome/browser/signin/easy_unlock_service_regular.h

Issue 1377313002: Revert of Hook up ProximityAuthSystem in EasyUnlockService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth_connection
Patch Set: Created 5 years, 3 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 | « chrome/browser/signin/easy_unlock_service.cc ('k') | chrome/browser/signin/easy_unlock_service_regular.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/easy_unlock_service_regular.h
diff --git a/chrome/browser/signin/easy_unlock_service_regular.h b/chrome/browser/signin/easy_unlock_service_regular.h
index 2a4579777b69e26bbe0baf982fdaab5cb5dd4a52..fb46bc472662463e23d8452c969161cdb76c669c 100644
--- a/chrome/browser/signin/easy_unlock_service_regular.h
+++ b/chrome/browser/signin/easy_unlock_service_regular.h
@@ -13,7 +13,6 @@
#include "base/prefs/pref_change_registrar.h"
#include "base/time/time.h"
#include "chrome/browser/signin/easy_unlock_service.h"
-#include "components/proximity_auth/cryptauth/cryptauth_device_manager.h"
#include "components/proximity_auth/screenlock_bridge.h"
#include "google_apis/gaia/oauth2_token_service.h"
@@ -32,11 +31,10 @@
namespace proximity_auth {
class CryptAuthClient;
+class CryptAuthGCMManager;
+class CryptAuthEnrollmentManager;
class CryptAuthDeviceManager;
-class CryptAuthEnrollmentManager;
-class CryptAuthGCMManager;
class ProximityAuthPrefManager;
-class RemoteDeviceLoader;
}
class EasyUnlockAppManager;
@@ -48,7 +46,6 @@
class EasyUnlockServiceRegular
: public EasyUnlockService,
public proximity_auth::ScreenlockBridge::Observer,
- public proximity_auth::CryptAuthDeviceManager::Observer,
public OAuth2TokenService::Observer {
public:
explicit EasyUnlockServiceRegular(Profile* profile);
@@ -67,14 +64,6 @@
proximity_auth::ProximityAuthPrefManager* GetProximityAuthPrefManager();
private:
- // Loads the RemoteDevice instances that will be supplied to
- // ProximityAuthSystem.
- void LoadRemoteDevices();
-
- // Called when |remote_device_loader_| completes.
- void OnRemoteDevicesLoaded(
- const std::vector<proximity_auth::RemoteDevice>& remote_devices);
-
// EasyUnlockService implementation:
EasyUnlockService::Type GetType() const override;
std::string GetUserEmail() const override;
@@ -99,16 +88,10 @@
void ShutdownInternal() override;
bool IsAllowedInternal() const override;
void OnWillFinalizeUnlock(bool success) override;
- void OnSuspendDoneInternal() override;
+ void OnSuspendDone() override;
// OAuth2TokenService::Observer:
void OnRefreshTokenAvailable(const std::string& account_id) override;
-
- // CryptAuthDeviceManager::Observer:
- void OnSyncFinished(
- proximity_auth::CryptAuthDeviceManager::SyncResult sync_result,
- proximity_auth::CryptAuthDeviceManager::DeviceChangeResult
- device_change_result) override;
// proximity_auth::ScreenlockBridge::Observer implementation:
void OnScreenDidLock(proximity_auth::ScreenlockBridge::LockHandler::ScreenType
@@ -182,15 +165,6 @@
// Manager responsible for handling the prefs used by proximity_auth classes.
scoped_ptr<proximity_auth::ProximityAuthPrefManager> pref_manager_;
- // Loads the RemoteDevice instances from CryptAuth and local data.
- scoped_ptr<proximity_auth::RemoteDeviceLoader> remote_device_loader_;
-
- // If a new RemoteDevice was synced while the screen is locked, we defer
- // loading the RemoteDevice until the screen is unlocked. For security,
- // this deferment prevents the lock screen from being changed by a network
- // event.
- bool deferring_device_load_;
-
base::WeakPtrFactory<EasyUnlockServiceRegular> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(EasyUnlockServiceRegular);
« no previous file with comments | « chrome/browser/signin/easy_unlock_service.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