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

Unified Diff: chrome/browser/ui/ash/session_controller_client.h

Issue 2842693002: cros: Don't send duplicate UserSession mojo messages to ash (Closed)
Patch Set: rebase Created 3 years, 8 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/ui/ash/session_controller_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/session_controller_client.h
diff --git a/chrome/browser/ui/ash/session_controller_client.h b/chrome/browser/ui/ash/session_controller_client.h
index 4241d8464cf8e3e107f12faeed9e134a8b8baabd..9fffbe0a47eac7d325d190d37d70297a51780446 100644
--- a/chrome/browser/ui/ash/session_controller_client.h
+++ b/chrome/browser/ui/ash/session_controller_client.h
@@ -95,6 +95,7 @@ class SessionControllerClient
static void FlushForTesting();
private:
+ FRIEND_TEST_ALL_PREFIXES(SessionControllerClientTest, SendUserSession);
FRIEND_TEST_ALL_PREFIXES(SessionControllerClientTest, SupervisedUser);
// Called when the login profile is ready.
@@ -130,7 +131,9 @@ class SessionControllerClient
content::NotificationRegistrar registrar_;
+ // Used to suppress duplicate IPCs to ash.
ash::mojom::SessionInfoPtr last_sent_session_info_;
+ ash::mojom::UserSessionPtr last_sent_user_session_;
base::WeakPtrFactory<SessionControllerClient> weak_ptr_factory_;
« no previous file with comments | « no previous file | chrome/browser/ui/ash/session_controller_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698