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

Unified Diff: components/proximity_auth/proximity_auth_system.h

Issue 1494153002: This CL replaces e-mail with AccountId in easy signin code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 5 years 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: components/proximity_auth/proximity_auth_system.h
diff --git a/components/proximity_auth/proximity_auth_system.h b/components/proximity_auth/proximity_auth_system.h
index 4452265d9bc736f308e551413d92c414083b35bd..41316afcd5393a14d8319eda720738dd3791e1ac 100644
--- a/components/proximity_auth/proximity_auth_system.h
+++ b/components/proximity_auth/proximity_auth_system.h
@@ -14,6 +14,8 @@
#include "components/proximity_auth/remote_device_life_cycle.h"
#include "components/proximity_auth/screenlock_bridge.h"
+class AccountId;
+
namespace proximity_auth {
class ProximityAuthClient;
@@ -38,7 +40,7 @@ class ProximityAuthSystem : public RemoteDeviceLifeCycle::Observer,
void Start();
// Called when the user clicks the user pod and attempts to unlock/sign-in.
- void OnAuthAttempted(const std::string& user_id);
+ void OnAuthAttempted(const AccountId& account_id);
// Called when the system suspends.
void OnSuspend();
@@ -56,7 +58,7 @@ class ProximityAuthSystem : public RemoteDeviceLifeCycle::Observer,
ScreenlockBridge::LockHandler::ScreenType screen_type) override;
void OnScreenDidUnlock(
ScreenlockBridge::LockHandler::ScreenType screen_type) override;
- void OnFocusedUserChanged(const std::string& user_id) override;
+ void OnFocusedUserChanged(const AccountId& account_id) override;
// Resumes |remote_device_life_cycle_| after device wakes up and waits a
// timeout.

Powered by Google App Engine
This is Rietveld 408576698