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

Side by Side Diff: chrome/browser/chromeos/login/session/user_session_manager.cc

Issue 2642783003: Move more utility functions to arc_util. (Closed)
Patch Set: Revert IsIntentHelperAvailable fix. Created 3 years, 11 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 #include "chromeos/chromeos_switches.h" 85 #include "chromeos/chromeos_switches.h"
86 #include "chromeos/cryptohome/cryptohome_parameters.h" 86 #include "chromeos/cryptohome/cryptohome_parameters.h"
87 #include "chromeos/cryptohome/cryptohome_util.h" 87 #include "chromeos/cryptohome/cryptohome_util.h"
88 #include "chromeos/dbus/cryptohome_client.h" 88 #include "chromeos/dbus/cryptohome_client.h"
89 #include "chromeos/dbus/dbus_thread_manager.h" 89 #include "chromeos/dbus/dbus_thread_manager.h"
90 #include "chromeos/dbus/session_manager_client.h" 90 #include "chromeos/dbus/session_manager_client.h"
91 #include "chromeos/login/auth/stub_authenticator.h" 91 #include "chromeos/login/auth/stub_authenticator.h"
92 #include "chromeos/network/portal_detector/network_portal_detector.h" 92 #include "chromeos/network/portal_detector/network_portal_detector.h"
93 #include "chromeos/network/portal_detector/network_portal_detector_strategy.h" 93 #include "chromeos/network/portal_detector/network_portal_detector_strategy.h"
94 #include "chromeos/settings/cros_settings_names.h" 94 #include "chromeos/settings/cros_settings_names.h"
95 #include "components/arc/arc_bridge_service.h" 95 #include "components/arc/arc_util.h"
96 #include "components/component_updater/component_updater_service.h" 96 #include "components/component_updater/component_updater_service.h"
97 #include "components/flags_ui/pref_service_flags_storage.h" 97 #include "components/flags_ui/pref_service_flags_storage.h"
98 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 98 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
99 #include "components/prefs/pref_member.h" 99 #include "components/prefs/pref_member.h"
100 #include "components/prefs/pref_registry_simple.h" 100 #include "components/prefs/pref_registry_simple.h"
101 #include "components/prefs/pref_service.h" 101 #include "components/prefs/pref_service.h"
102 #include "components/quirks/quirks_manager.h" 102 #include "components/quirks/quirks_manager.h"
103 #include "components/session_manager/core/session_manager.h" 103 #include "components/session_manager/core/session_manager.h"
104 #include "components/signin/core/account_id/account_id.h" 104 #include "components/signin/core/account_id/account_id.h"
105 #include "components/signin/core/browser/account_tracker_service.h" 105 #include "components/signin/core/browser/account_tracker_service.h"
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 1172
1173 // Initialize various services only for primary user. 1173 // Initialize various services only for primary user.
1174 const user_manager::User* user = 1174 const user_manager::User* user =
1175 ProfileHelper::Get()->GetUserByProfile(profile); 1175 ProfileHelper::Get()->GetUserByProfile(profile);
1176 if (user_manager->GetPrimaryUser() == user) { 1176 if (user_manager->GetPrimaryUser() == user) {
1177 InitRlz(profile); 1177 InitRlz(profile);
1178 InitializeCerts(profile); 1178 InitializeCerts(profile);
1179 InitializeCRLSetFetcher(user); 1179 InitializeCRLSetFetcher(user);
1180 InitializeCertificateTransparencyComponents(user); 1180 InitializeCertificateTransparencyComponents(user);
1181 1181
1182 if (arc::ArcBridgeService::GetEnabled( 1182 if (arc::util::IsArcEnabled())
1183 base::CommandLine::ForCurrentProcess())) {
1184 arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); 1183 arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile);
1185 }
1186 } 1184 }
1187 1185
1188 UpdateEasyUnlockKeys(user_context_); 1186 UpdateEasyUnlockKeys(user_context_);
1189 user_context_.ClearSecrets(); 1187 user_context_.ClearSecrets();
1190 if (TokenHandlesEnabled()) { 1188 if (TokenHandlesEnabled()) {
1191 CreateTokenUtilIfMissing(); 1189 CreateTokenUtilIfMissing();
1192 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) { 1190 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) {
1193 if (!token_handle_fetcher_.get()) { 1191 if (!token_handle_fetcher_.get()) {
1194 token_handle_fetcher_.reset(new TokenHandleFetcher( 1192 token_handle_fetcher_.reset(new TokenHandleFetcher(
1195 token_handle_util_.get(), user->GetAccountId())); 1193 token_handle_util_.get(), user->GetAccountId()));
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 ->browser_policy_connector_chromeos() 1877 ->browser_policy_connector_chromeos()
1880 ->IsEnterpriseManaged()) { 1878 ->IsEnterpriseManaged()) {
1881 return false; 1879 return false;
1882 } 1880 }
1883 1881
1884 // Do not show end of life notification if this is a guest session 1882 // Do not show end of life notification if this is a guest session
1885 return !profile->IsGuestSession(); 1883 return !profile->IsGuestSession();
1886 } 1884 }
1887 1885
1888 } // namespace chromeos 1886 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698