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

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: fix uninit var 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..8f0b0ebf5021fc1ab457c4ad682bd0a45c10ea43 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,19 @@ class EasyUnlockService : public KeyedService {
bool IsAllowed();
private:
+ // A class to detect whether a bluetooth adapter is present.
+ class BluetoothDetector;
Ilya Sherman 2014/08/14 07:29:41 Do we really need to implement this code here, or
xiyuan 2014/08/14 20:27:44 The Bluetooth settings logic is baked into its web
+
void Initialize();
void LoadApp();
void UnloadApp();
+ void CheckIsAllowed();
void OnPrefsChanged();
+ void OnBluetoothAdapterPresentChanged();
Ilya Sherman 2014/08/14 07:29:42 nit: Please document at least the new methods.
xiyuan 2014/08/14 20:27:44 Done.
Profile* profile_;
PrefChangeRegistrar registrar_;
+ scoped_ptr<BluetoothDetector> bluetooth_detector_;
Ilya Sherman 2014/08/14 07:29:42 Hmm, is this a scoped_ptr just so that you can kee
xiyuan 2014/08/14 20:27:44 Yep. I prefer to put as little as possible details
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