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

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: rebase 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
« no previous file with comments | « no previous file | chrome/browser/signin/easy_unlock_service.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.h
diff --git a/chrome/browser/signin/easy_unlock_service.h b/chrome/browser/signin/easy_unlock_service.h
index 996b4110c5dfc1720b90ad22c37f7f3a71562c1a..250a2059dc9141acfd94d69f92f4441f95699ef0 100644
--- a/chrome/browser/signin/easy_unlock_service.h
+++ b/chrome/browser/signin/easy_unlock_service.h
@@ -78,16 +78,36 @@ class EasyUnlockService : public KeyedService {
}
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();
+
+ // Sets the new turn-off flow status.
void SetTurnOffFlowStatus(TurnOffFlowStatus status);
+
+ // Callback invoked when turn off flow has finished.
void OnTurnOffFlowFinished(bool success);
Profile* profile_;
PrefChangeRegistrar registrar_;
+ scoped_ptr<BluetoothDetector> bluetooth_detector_;
// Created lazily in |GetScreenlockStateHandler|.
scoped_ptr<EasyUnlockScreenlockStateHandler> screenlock_state_handler_;
« no previous file with comments | « no previous file | chrome/browser/signin/easy_unlock_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698