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

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

Issue 528423002: Unload Easy Unlock app when ChromeOS suspends and reload on wake up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unload instead of uninstalling app Created 6 years, 3 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 250a2059dc9141acfd94d69f92f4441f95699ef0..e93f89b5d2cecc60ab5d0b3da201fd861f56c72c 100644
--- a/chrome/browser/signin/easy_unlock_service.h
+++ b/chrome/browser/signin/easy_unlock_service.h
@@ -84,11 +84,12 @@ class EasyUnlockService : public KeyedService {
// Initializes the service after ExtensionService is ready.
void Initialize();
- // Loads the Easy unlock component app.
+ // Installs the Easy unlock component app if it isn't installed or enables
+ // the app if it is installed but disabled.
void LoadApp();
- // Unloads the Easy unlock component app.
- void UnloadApp();
+ // Disables the Easy unlock component app.
+ void DisableApp();
// Checks whether Easy unlock should be running and updates app state.
void UpdateAppState();
@@ -115,6 +116,12 @@ class EasyUnlockService : public KeyedService {
scoped_ptr<EasyUnlockToggleFlow> turn_off_flow_;
ObserverList<EasyUnlockServiceObserver> observers_;
+#if defined(OS_CHROMEOS)
+ // Monitors suspend and wake state of ChromeOS.
+ class PowerMonitor;
+ scoped_ptr<PowerMonitor> power_monitor_;
+#endif
+
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