| Index: chrome/browser/signin/easy_unlock_service.h
|
| diff --git a/chrome/browser/signin/easy_unlock_service.h b/chrome/browser/signin/easy_unlock_service.h
|
| index dda962f09e745f3d793809e646ff64810db19919..ad1270ee986afc04cfd9d97ee9fed1f1ff54f58e 100644
|
| --- a/chrome/browser/signin/easy_unlock_service.h
|
| +++ b/chrome/browser/signin/easy_unlock_service.h
|
| @@ -6,6 +6,7 @@
|
| #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_
|
|
|
| #include "base/macros.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/prefs/pref_change_registrar.h"
|
| #include "components/keyed_service/core/keyed_service.h"
|
| @@ -36,13 +37,30 @@ class EasyUnlockService : public KeyedService {
|
| bool IsAllowed();
|
|
|
| private:
|
| + // A class to detect whether a bluetooth adapter is present.
|
| + class BluetoothDetector;
|
| +
|
| + // Initializes the service after ExtensionService is ready.
|
| void Initialize();
|
| +
|
| + // Loads the Easy unlock component app.
|
| void LoadApp();
|
| +
|
| + // Unloads the Easy unlock component app.
|
| void UnloadApp();
|
| +
|
| + // Checks whether Easy unlock should be running and updates app state.
|
| + void UpdateAppState();
|
| +
|
| + // Callback when the controlling pref changes.
|
| void OnPrefsChanged();
|
|
|
| + // Callback when Bluetooth adapter present state changes.
|
| + void OnBluetoothAdapterPresentChanged();
|
| +
|
| Profile* profile_;
|
| PrefChangeRegistrar registrar_;
|
| + scoped_ptr<BluetoothDetector> bluetooth_detector_;
|
| base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(EasyUnlockService);
|
|
|