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

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

Issue 472733002: No Easy unlock if bluetooth is not available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: attempt to fix gmock error Created 6 years, 4 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
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);
« no previous file with comments | « no previous file | chrome/browser/signin/easy_unlock_service.cc » ('j') | chrome/browser/signin/easy_unlock_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698