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

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

Issue 446743003: Hook up new API for easy unlock to update lock screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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..bed1c096dc72836a6cd2e37955097b50ff8e53fc 100644
--- a/chrome/browser/signin/easy_unlock_service.h
+++ b/chrome/browser/signin/easy_unlock_service.h
@@ -14,6 +14,7 @@ namespace user_prefs {
class PrefRegistrySyncable;
}
+class EasyUnlockScreenlockStateHandler;
class Profile;
class EasyUnlockService : public KeyedService {
@@ -35,14 +36,20 @@ class EasyUnlockService : public KeyedService {
// permitted either the flag is enabled or its field trial is enabled.
bool IsAllowed();
+ // Gets |screenlock_state_handler_|.
+ EasyUnlockScreenlockStateHandler* GetScreenlockStateHandler();
+
private:
void Initialize();
- void LoadApp();
+ // Returns whether the app was loaded.
+ bool LoadApp();
void UnloadApp();
void OnPrefsChanged();
Profile* profile_;
PrefChangeRegistrar registrar_;
+ // Set only if easy unlock app is loaded.
+ scoped_ptr<EasyUnlockScreenlockStateHandler> screenlock_state_handler_;
base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(EasyUnlockService);

Powered by Google App Engine
This is Rietveld 408576698