Commit 1163df95 authored by James Hawkins's avatar James Hawkins Committed by Commit Bot

Smart Lock: Remove unused service observer methods.

R=hansberry@chromium.org

Bug: 899324
Test: none
Change-Id: Ic0e717072a242ab397aad86a5ce651d4ea7de970
Reviewed-on: https://chromium-review.googlesource.com/c/1315488Reviewed-by: default avatarRyan Hansberry <hansberry@chromium.org>
Commit-Queue: James Hawkins <jhawkins@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605018}
parent 2f1e9715
...@@ -483,14 +483,6 @@ void EasyUnlockService::CheckCryptohomeKeysAndMaybeHardlock() { ...@@ -483,14 +483,6 @@ void EasyUnlockService::CheckCryptohomeKeysAndMaybeHardlock() {
weak_ptr_factory_.GetWeakPtr(), account_id, paired_devices)); weak_ptr_factory_.GetWeakPtr(), account_id, paired_devices));
} }
void EasyUnlockService::AddObserver(EasyUnlockServiceObserver* observer) {
observers_.AddObserver(observer);
}
void EasyUnlockService::RemoveObserver(EasyUnlockServiceObserver* observer) {
observers_.RemoveObserver(observer);
}
void EasyUnlockService::Shutdown() { void EasyUnlockService::Shutdown() {
if (shut_down_) if (shut_down_)
return; return;
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include "base/callback_forward.h" #include "base/callback_forward.h"
#include "base/macros.h" #include "base/macros.h"
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "chrome/browser/chromeos/login/easy_unlock/chrome_proximity_auth_client.h" #include "chrome/browser/chromeos/login/easy_unlock/chrome_proximity_auth_client.h"
#include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_auth_attempt.h" #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_auth_attempt.h"
...@@ -51,8 +50,6 @@ namespace secure_channel { ...@@ -51,8 +50,6 @@ namespace secure_channel {
class SecureChannelClient; class SecureChannelClient;
} // namespace secure_channel } // namespace secure_channel
class EasyUnlockServiceObserver;
class EasyUnlockService : public KeyedService { class EasyUnlockService : public KeyedService {
public: public:
enum Type { TYPE_REGULAR, TYPE_SIGNIN }; enum Type { TYPE_REGULAR, TYPE_SIGNIN };
...@@ -163,9 +160,6 @@ class EasyUnlockService : public KeyedService { ...@@ -163,9 +160,6 @@ class EasyUnlockService : public KeyedService {
// hardlock state if the two do not match. // hardlock state if the two do not match.
void CheckCryptohomeKeysAndMaybeHardlock(); void CheckCryptohomeKeysAndMaybeHardlock();
void AddObserver(EasyUnlockServiceObserver* observer);
void RemoveObserver(EasyUnlockServiceObserver* observer);
ChromeProximityAuthClient* proximity_auth_client() { ChromeProximityAuthClient* proximity_auth_client() {
return &proximity_auth_client_; return &proximity_auth_client_;
} }
...@@ -287,8 +281,6 @@ class EasyUnlockService : public KeyedService { ...@@ -287,8 +281,6 @@ class EasyUnlockService : public KeyedService {
bool tpm_key_checked_; bool tpm_key_checked_;
base::ObserverList<EasyUnlockServiceObserver>::Unchecked observers_;
base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); DISALLOW_COPY_AND_ASSIGN(EasyUnlockService);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment