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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/session/user_session_manager.h" 5 #include "chrome/browser/chromeos/login/session/user_session_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 // Triggers app launcher start page service to load start page web contents. 1733 // Triggers app launcher start page service to load start page web contents.
1734 app_list::StartPageService::Get(profile); 1734 app_list::StartPageService::Get(profile);
1735 } else { 1735 } else {
1736 LOG(WARNING) << "Browser hasn't been launched, should_launch_browser_" 1736 LOG(WARNING) << "Browser hasn't been launched, should_launch_browser_"
1737 << " is false. This is normal in some tests."; 1737 << " is false. This is normal in some tests.";
1738 } 1738 }
1739 1739
1740 if (HatsNotificationController::ShouldShowSurveyToProfile(profile)) 1740 if (HatsNotificationController::ShouldShowSurveyToProfile(profile))
1741 hats_notification_controller_ = new HatsNotificationController(profile); 1741 hats_notification_controller_ = new HatsNotificationController(profile);
1742 1742
1743 if (QuickUnlockNotificationController::ShouldShow(profile) &&
1744 quick_unlock_notification_handler_.find(profile) ==
1745 quick_unlock_notification_handler_.end()) {
1746 auto* qu_feature_notification_controller =
1747 new QuickUnlockNotificationController(profile);
1748 quick_unlock_notification_handler_.insert(
1749 std::make_pair(profile, qu_feature_notification_controller));
1750 }
1751
1743 // Mark login host for deletion after browser starts. This 1752 // Mark login host for deletion after browser starts. This
1744 // guarantees that the message loop will be referenced by the 1753 // guarantees that the message loop will be referenced by the
1745 // browser before it is dereferenced by the login host. 1754 // browser before it is dereferenced by the login host.
1746 if (login_host) 1755 if (login_host)
1747 login_host->Finalize(); 1756 login_host->Finalize();
1748 user_manager::UserManager::Get()->SessionStarted(); 1757 user_manager::UserManager::Get()->SessionStarted();
1749 chromeos::BootTimesRecorder::Get()->LoginDone( 1758 chromeos::BootTimesRecorder::Get()->LoginDone(
1750 user_manager::UserManager::Get()->IsCurrentUserNew()); 1759 user_manager::UserManager::Get()->IsCurrentUserNew());
1751 1760
1752 // Check to see if this profile should show EndOfLife Notification and show 1761 // Check to see if this profile should show EndOfLife Notification and show
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1884 ->browser_policy_connector_chromeos() 1893 ->browser_policy_connector_chromeos()
1885 ->IsEnterpriseManaged()) { 1894 ->IsEnterpriseManaged()) {
1886 return false; 1895 return false;
1887 } 1896 }
1888 1897
1889 // Do not show end of life notification if this is a guest session 1898 // Do not show end of life notification if this is a guest session
1890 return !profile->IsGuestSession(); 1899 return !profile->IsGuestSession();
1891 } 1900 }
1892 1901
1893 } // namespace chromeos 1902 } // namespace chromeos
OLDNEW
« 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