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

Unified Diff: chrome/browser/chromeos/login/session/user_session_manager.cc

Issue 2128053002: Implements the feature notification for Quick Unlock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implements the feature notification for Quick Unlock Created 4 years, 5 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/session/user_session_manager.cc
diff --git a/chrome/browser/chromeos/login/session/user_session_manager.cc b/chrome/browser/chromeos/login/session/user_session_manager.cc
index f461799aa41dbea7994e0110f96a3cb2ddf71a97..4a7f9fccd00462e7c0bee7f2cf7dc2791cb44198 100644
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
@@ -1740,6 +1740,15 @@ void UserSessionManager::DoBrowserLaunchInternal(Profile* profile,
if (HatsNotificationController::ShouldShowSurveyToProfile(profile))
hats_notification_controller_ = new HatsNotificationController(profile);
+ if (QuickUnlockNotificationController::ShouldShow(profile) &&
+ quick_unlock_notification_handler_.find(profile) ==
+ quick_unlock_notification_handler_.end()) {
+ auto* qu_feature_notification_controller =
+ new QuickUnlockNotificationController(profile);
+ quick_unlock_notification_handler_.insert(
+ std::make_pair(profile, qu_feature_notification_controller));
+ }
+
// Mark login host for deletion after browser starts. This
// guarantees that the message loop will be referenced by the
// browser before it is dereferenced by the login host.
« no previous file with comments | « chrome/browser/chromeos/login/session/user_session_manager.h ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698