OLD | NEW |
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 11 matching lines...) Expand all Loading... |
22 #include "base/strings/string16.h" | 22 #include "base/strings/string16.h" |
23 #include "base/sys_info.h" | 23 #include "base/sys_info.h" |
24 #include "base/task_scheduler/post_task.h" | 24 #include "base/task_scheduler/post_task.h" |
25 #include "base/threading/thread_task_runner_handle.h" | 25 #include "base/threading/thread_task_runner_handle.h" |
26 #include "chrome/browser/about_flags.h" | 26 #include "chrome/browser/about_flags.h" |
27 #include "chrome/browser/app_mode/app_mode_utils.h" | 27 #include "chrome/browser/app_mode/app_mode_utils.h" |
28 #include "chrome/browser/browser_process.h" | 28 #include "chrome/browser/browser_process.h" |
29 #include "chrome/browser/browser_process_platform_part_chromeos.h" | 29 #include "chrome/browser/browser_process_platform_part_chromeos.h" |
30 #include "chrome/browser/browser_shutdown.h" | 30 #include "chrome/browser/browser_shutdown.h" |
31 #include "chrome/browser/chrome_notification_types.h" | 31 #include "chrome/browser/chrome_notification_types.h" |
| 32 #include "chrome/browser/chromeos/arc/arc_migration_guide_notification.h" |
32 #include "chrome/browser/chromeos/arc/arc_service_launcher.h" | 33 #include "chrome/browser/chromeos/arc/arc_service_launcher.h" |
33 #include "chrome/browser/chromeos/arc/arc_util.h" | 34 #include "chrome/browser/chromeos/arc/arc_util.h" |
34 #include "chrome/browser/chromeos/base/locale_util.h" | 35 #include "chrome/browser/chromeos/base/locale_util.h" |
35 #include "chrome/browser/chromeos/boot_times_recorder.h" | 36 #include "chrome/browser/chromeos/boot_times_recorder.h" |
36 #include "chrome/browser/chromeos/first_run/first_run.h" | 37 #include "chrome/browser/chromeos/first_run/first_run.h" |
37 #include "chrome/browser/chromeos/first_run/goodies_displayer.h" | 38 #include "chrome/browser/chromeos/first_run/goodies_displayer.h" |
38 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 39 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
39 #include "chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h" | 40 #include "chrome/browser/chromeos/login/auth/chrome_cryptohome_authenticator.h" |
40 #include "chrome/browser/chromeos/login/chrome_restart_request.h" | 41 #include "chrome/browser/chromeos/login/chrome_restart_request.h" |
41 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h" | 42 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h" |
(...skipping 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1822 // browser before it is dereferenced by the login host. | 1823 // browser before it is dereferenced by the login host. |
1823 if (login_host) | 1824 if (login_host) |
1824 login_host->Finalize(); | 1825 login_host->Finalize(); |
1825 chromeos::BootTimesRecorder::Get()->LoginDone( | 1826 chromeos::BootTimesRecorder::Get()->LoginDone( |
1826 user_manager::UserManager::Get()->IsCurrentUserNew()); | 1827 user_manager::UserManager::Get()->IsCurrentUserNew()); |
1827 | 1828 |
1828 // Check to see if this profile should show EndOfLife Notification and show | 1829 // Check to see if this profile should show EndOfLife Notification and show |
1829 // the message accordingly. | 1830 // the message accordingly. |
1830 if (ShouldShowEolNotification(profile)) | 1831 if (ShouldShowEolNotification(profile)) |
1831 CheckEolStatus(profile); | 1832 CheckEolStatus(profile); |
| 1833 |
| 1834 // Show the one-time notification and update the relevant pref about the |
| 1835 // completion of the file system migration necessary for ARC, when needed. |
| 1836 arc::ShowArcMigrationSuccessNotificationIfNeeded(profile); |
1832 } | 1837 } |
1833 | 1838 |
1834 void UserSessionManager::RespectLocalePreferenceWrapper( | 1839 void UserSessionManager::RespectLocalePreferenceWrapper( |
1835 Profile* profile, | 1840 Profile* profile, |
1836 const base::Closure& callback) { | 1841 const base::Closure& callback) { |
1837 if (browser_shutdown::IsTryingToQuit()) | 1842 if (browser_shutdown::IsTryingToQuit()) |
1838 return; | 1843 return; |
1839 | 1844 |
1840 const user_manager::User* const user = | 1845 const user_manager::User* const user = |
1841 ProfileHelper::Get()->GetUserByProfile(profile); | 1846 ProfileHelper::Get()->GetUserByProfile(profile); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1952 ->browser_policy_connector_chromeos() | 1957 ->browser_policy_connector_chromeos() |
1953 ->IsEnterpriseManaged()) { | 1958 ->IsEnterpriseManaged()) { |
1954 return false; | 1959 return false; |
1955 } | 1960 } |
1956 | 1961 |
1957 // Do not show end of life notification if this is a guest session | 1962 // Do not show end of life notification if this is a guest session |
1958 return !profile->IsGuestSession(); | 1963 return !profile->IsGuestSession(); |
1959 } | 1964 } |
1960 | 1965 |
1961 } // namespace chromeos | 1966 } // namespace chromeos |
OLD | NEW |