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

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

Issue 1477733002: Add ArcNotificationManager for new ARC notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 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
« no previous file with comments | « no previous file | components/arc.gypi » ('j') | components/arc/arc_service_manager.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 9 #include <string>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 #include "chrome/browser/net/nss_context.h" 67 #include "chrome/browser/net/nss_context.h"
68 #include "chrome/browser/prefs/session_startup_pref.h" 68 #include "chrome/browser/prefs/session_startup_pref.h"
69 #include "chrome/browser/profiles/profile.h" 69 #include "chrome/browser/profiles/profile.h"
70 #include "chrome/browser/profiles/profile_manager.h" 70 #include "chrome/browser/profiles/profile_manager.h"
71 #include "chrome/browser/signin/account_tracker_service_factory.h" 71 #include "chrome/browser/signin/account_tracker_service_factory.h"
72 #include "chrome/browser/signin/easy_unlock_service.h" 72 #include "chrome/browser/signin/easy_unlock_service.h"
73 #include "chrome/browser/signin/signin_manager_factory.h" 73 #include "chrome/browser/signin/signin_manager_factory.h"
74 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h" 74 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h"
75 #include "chrome/browser/supervised_user/child_accounts/child_account_service_fa ctory.h" 75 #include "chrome/browser/supervised_user/child_accounts/child_account_service_fa ctory.h"
76 #include "chrome/browser/ui/app_list/start_page_service.h" 76 #include "chrome/browser/ui/app_list/start_page_service.h"
77 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
77 #include "chrome/browser/ui/startup/startup_browser_creator.h" 78 #include "chrome/browser/ui/startup/startup_browser_creator.h"
78 #include "chrome/common/chrome_switches.h" 79 #include "chrome/common/chrome_switches.h"
79 #include "chrome/common/logging_chrome.h" 80 #include "chrome/common/logging_chrome.h"
80 #include "chrome/common/pref_names.h" 81 #include "chrome/common/pref_names.h"
81 #include "chromeos/cert_loader.h" 82 #include "chromeos/cert_loader.h"
82 #include "chromeos/chromeos_switches.h" 83 #include "chromeos/chromeos_switches.h"
83 #include "chromeos/cryptohome/cryptohome_util.h" 84 #include "chromeos/cryptohome/cryptohome_util.h"
84 #include "chromeos/dbus/cryptohome_client.h" 85 #include "chromeos/dbus/cryptohome_client.h"
85 #include "chromeos/dbus/dbus_thread_manager.h" 86 #include "chromeos/dbus/dbus_thread_manager.h"
86 #include "chromeos/dbus/session_manager_client.h" 87 #include "chromeos/dbus/session_manager_client.h"
87 #include "chromeos/login/auth/stub_authenticator.h" 88 #include "chromeos/login/auth/stub_authenticator.h"
88 #include "chromeos/login/user_names.h" 89 #include "chromeos/login/user_names.h"
89 #include "chromeos/network/portal_detector/network_portal_detector.h" 90 #include "chromeos/network/portal_detector/network_portal_detector.h"
90 #include "chromeos/network/portal_detector/network_portal_detector_strategy.h" 91 #include "chromeos/network/portal_detector/network_portal_detector_strategy.h"
91 #include "chromeos/settings/cros_settings_names.h" 92 #include "chromeos/settings/cros_settings_names.h"
93 #include "components/arc/arc_bridge_service.h"
94 #include "components/arc/arc_service_manager.h"
92 #include "components/component_updater/component_updater_service.h" 95 #include "components/component_updater/component_updater_service.h"
93 #include "components/flags_ui/pref_service_flags_storage.h" 96 #include "components/flags_ui/pref_service_flags_storage.h"
94 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 97 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
95 #include "components/session_manager/core/session_manager.h" 98 #include "components/session_manager/core/session_manager.h"
96 #include "components/signin/core/account_id/account_id.h" 99 #include "components/signin/core/account_id/account_id.h"
97 #include "components/signin/core/browser/account_tracker_service.h" 100 #include "components/signin/core/browser/account_tracker_service.h"
98 #include "components/signin/core/browser/signin_manager_base.h" 101 #include "components/signin/core/browser/signin_manager_base.h"
99 #include "components/user_manager/known_user.h" 102 #include "components/user_manager/known_user.h"
100 #include "components/user_manager/user.h" 103 #include "components/user_manager/user.h"
101 #include "components/user_manager/user_manager.h" 104 #include "components/user_manager/user_manager.h"
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 content::Details<Profile>(profile)); 1118 content::Details<Profile>(profile));
1116 1119
1117 // Initialize various services only for primary user. 1120 // Initialize various services only for primary user.
1118 const user_manager::User* user = 1121 const user_manager::User* user =
1119 ProfileHelper::Get()->GetUserByProfile(profile); 1122 ProfileHelper::Get()->GetUserByProfile(profile);
1120 if (user_manager->GetPrimaryUser() == user) { 1123 if (user_manager->GetPrimaryUser() == user) {
1121 InitRlz(profile); 1124 InitRlz(profile);
1122 InitializeCerts(profile); 1125 InitializeCerts(profile);
1123 InitializeCRLSetFetcher(user); 1126 InitializeCRLSetFetcher(user);
1124 InitializeEVCertificatesWhitelistComponent(user); 1127 InitializeEVCertificatesWhitelistComponent(user);
1128
1129 if (arc::ArcBridgeService::GetEnabled(
1130 base::CommandLine::ForCurrentProcess())) {
1131 DCHECK(arc::ArcServiceManager::Get());
1132 arc::ArcServiceManager::Get()->OnPrimaryUserProfilePrepared(
1133 multi_user_util::GetAccountIdFromProfile(profile));
1134 }
1125 } 1135 }
1126 1136
1127 UpdateEasyUnlockKeys(user_context_); 1137 UpdateEasyUnlockKeys(user_context_);
1128 user_context_.ClearSecrets(); 1138 user_context_.ClearSecrets();
1129 if (TokenHandlesEnabled()) { 1139 if (TokenHandlesEnabled()) {
1130 CreateTokenUtilIfMissing(); 1140 CreateTokenUtilIfMissing();
1131 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) { 1141 if (token_handle_util_->ShouldObtainHandle(user->GetAccountId())) {
1132 if (!token_handle_fetcher_.get()) { 1142 if (!token_handle_fetcher_.get()) {
1133 token_handle_fetcher_.reset(new TokenHandleFetcher( 1143 token_handle_fetcher_.reset(new TokenHandleFetcher(
1134 token_handle_util_.get(), user->GetAccountId())); 1144 token_handle_util_.get(), user->GetAccountId()));
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 token_handle_util_.reset(); 1775 token_handle_util_.reset();
1766 first_run::GoodiesDisplayer::Delete(); 1776 first_run::GoodiesDisplayer::Delete();
1767 } 1777 }
1768 1778
1769 void UserSessionManager::CreateTokenUtilIfMissing() { 1779 void UserSessionManager::CreateTokenUtilIfMissing() {
1770 if (!token_handle_util_.get()) 1780 if (!token_handle_util_.get())
1771 token_handle_util_.reset(new TokenHandleUtil()); 1781 token_handle_util_.reset(new TokenHandleUtil());
1772 } 1782 }
1773 1783
1774 } // namespace chromeos 1784 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | components/arc.gypi » ('j') | components/arc/arc_service_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698