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

Unified Diff: chrome/browser/chromeos/login/lock/screen_locker.h

Issue 2903353003: Adding mojo calls for easy unlock service (Closed)
Patch Set: incoporate comments Created 3 years, 7 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/chromeos/login/lock/screen_locker.h
diff --git a/chrome/browser/chromeos/login/lock/screen_locker.h b/chrome/browser/chromeos/login/lock/screen_locker.h
index dba07eb44bdd26fa11b408c417e09a9f89f03d63..acbb679ad6a62ab0504a54b47a5a859da391cccb 100644
--- a/chrome/browser/chromeos/login/lock/screen_locker.h
+++ b/chrome/browser/chromeos/login/lock/screen_locker.h
@@ -35,6 +35,7 @@ class ExtendedAuthenticator;
class AuthFailure;
class ScreenlockIconProvider;
class WebUIScreenLocker;
+class ViewScreenLocker;
namespace test {
class ScreenLockerTester;
@@ -183,6 +184,7 @@ class ScreenLocker : public AuthStatusConsumer,
friend class test::ScreenLockerViewsTester;
friend class test::WebUIScreenLockerTester;
friend class WebUIScreenLocker;
+ friend class ViewScreenLocker;
// Track whether the user used pin or password to unlock the lock screen.
// Values corrospond to UMA histograms, do not modify, or add or delete other
@@ -233,7 +235,6 @@ class ScreenLocker : public AuthStatusConsumer,
// Delegate used to talk to the view.
Delegate* delegate_ = nullptr;
- bool owns_delegate_ = false;
// Users that can unlock the device.
user_manager::UserList users_;
@@ -280,6 +281,9 @@ class ScreenLocker : public AuthStatusConsumer,
device::mojom::FingerprintPtr fp_service_;
mojo::Binding<device::mojom::FingerprintObserver> binding_;
+ // ViewScreenLocker instance in use.
+ std::unique_ptr<ViewScreenLocker> view_screen_locker_;
+
base::WeakPtrFactory<ScreenLocker> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(ScreenLocker);

Powered by Google App Engine
This is Rietveld 408576698