| 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 // Read brand code asynchronously from an OEM data and repost ourselves. | 561 // Read brand code asynchronously from an OEM data and repost ourselves. |
| 562 google_brand::chromeos::InitBrand( | 562 google_brand::chromeos::InitBrand( |
| 563 base::Bind(&UserSessionManager::InitRlz, AsWeakPtr(), profile)); | 563 base::Bind(&UserSessionManager::InitRlz, AsWeakPtr(), profile)); |
| 564 return; | 564 return; |
| 565 } | 565 } |
| 566 base::PostTaskWithTraitsAndReplyWithResult( | 566 base::PostTaskWithTraitsAndReplyWithResult( |
| 567 FROM_HERE, base::TaskTraits() | 567 FROM_HERE, base::TaskTraits() |
| 568 .WithShutdownBehavior( | 568 .WithShutdownBehavior( |
| 569 base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN) | 569 base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN) |
| 570 .WithPriority(base::TaskPriority::BACKGROUND) | 570 .WithPriority(base::TaskPriority::BACKGROUND) |
| 571 .WithFileIO(), | 571 .MayBlock(), |
| 572 base::Bind(&base::PathExists, GetRlzDisabledFlagPath()), | 572 base::Bind(&base::PathExists, GetRlzDisabledFlagPath()), |
| 573 base::Bind(&UserSessionManager::InitRlzImpl, AsWeakPtr(), profile)); | 573 base::Bind(&UserSessionManager::InitRlzImpl, AsWeakPtr(), profile)); |
| 574 #endif | 574 #endif |
| 575 } | 575 } |
| 576 | 576 |
| 577 void UserSessionManager::SetFirstLoginPrefs( | 577 void UserSessionManager::SetFirstLoginPrefs( |
| 578 Profile* profile, | 578 Profile* profile, |
| 579 const std::string& public_session_locale, | 579 const std::string& public_session_locale, |
| 580 const std::string& public_session_input_method) { | 580 const std::string& public_session_input_method) { |
| 581 VLOG(1) << "Setting first login prefs"; | 581 VLOG(1) << "Setting first login prefs"; |
| (...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1839 ->browser_policy_connector_chromeos() | 1839 ->browser_policy_connector_chromeos() |
| 1840 ->IsEnterpriseManaged()) { | 1840 ->IsEnterpriseManaged()) { |
| 1841 return false; | 1841 return false; |
| 1842 } | 1842 } |
| 1843 | 1843 |
| 1844 // Do not show end of life notification if this is a guest session | 1844 // Do not show end of life notification if this is a guest session |
| 1845 return !profile->IsGuestSession(); | 1845 return !profile->IsGuestSession(); |
| 1846 } | 1846 } |
| 1847 | 1847 |
| 1848 } // namespace chromeos | 1848 } // namespace chromeos |
| OLD | NEW |