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

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

Issue 2524673003: arc: Stop/start ARC++ kiosk app when maintenance session started/finished. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix includes and usages. Created 4 years 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/chrome_session_manager.h" 5 #include "chrome/browser/chromeos/login/session/chrome_session_manager.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 user_session_mgr->InitializeCRLSetFetcher(user); 109 user_session_mgr->InitializeCRLSetFetcher(user);
110 user_session_mgr->InitializeCertificateTransparencyComponents(user); 110 user_session_mgr->InitializeCertificateTransparencyComponents(user);
111 111
112 if (arc::ArcBridgeService::GetEnabled( 112 if (arc::ArcBridgeService::GetEnabled(
113 base::CommandLine::ForCurrentProcess())) { 113 base::CommandLine::ForCurrentProcess())) {
114 DCHECK(arc::ArcServiceManager::Get()); 114 DCHECK(arc::ArcServiceManager::Get());
115 std::unique_ptr<BooleanPrefMember> arc_enabled_pref = 115 std::unique_ptr<BooleanPrefMember> arc_enabled_pref =
116 base::MakeUnique<BooleanPrefMember>(); 116 base::MakeUnique<BooleanPrefMember>();
117 arc_enabled_pref->Init(prefs::kArcEnabled, user_profile->GetPrefs()); 117 arc_enabled_pref->Init(prefs::kArcEnabled, user_profile->GetPrefs());
118 arc::ArcServiceManager::Get()->OnPrimaryUserProfilePrepared( 118 arc::ArcServiceManager::Get()->OnPrimaryUserProfilePrepared(
119 multi_user_util::GetAccountIdFromProfile(user_profile), 119 multi_user_util::GetAccountIdFromProfile(user_profile), user_profile,
120 std::move(arc_enabled_pref)); 120 std::move(arc_enabled_pref));
121 DCHECK(arc::ArcSessionManager::Get()); 121 DCHECK(arc::ArcSessionManager::Get());
122 arc::ArcSessionManager::Get()->OnPrimaryUserProfilePrepared(user_profile); 122 arc::ArcSessionManager::Get()->OnPrimaryUserProfilePrepared(user_profile);
123 } 123 }
124 124
125 // Send the PROFILE_PREPARED notification and call SessionStarted() 125 // Send the PROFILE_PREPARED notification and call SessionStarted()
126 // so that the Launcher and other Profile dependent classes are created. 126 // so that the Launcher and other Profile dependent classes are created.
127 content::NotificationService::current()->Notify( 127 content::NotificationService::current()->Notify(
128 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, 128 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED,
129 content::NotificationService::AllSources(), 129 content::NotificationService::AllSources(),
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 const std::string& user_id_hash, 247 const std::string& user_id_hash,
248 bool browser_restart) { 248 bool browser_restart) {
249 BootTimesRecorder* btl = BootTimesRecorder::Get(); 249 BootTimesRecorder* btl = BootTimesRecorder::Get();
250 btl->AddLoginTimeMarker("UserLoggedIn-Start", false); 250 btl->AddLoginTimeMarker("UserLoggedIn-Start", false);
251 session_manager::SessionManager::NotifyUserLoggedIn( 251 session_manager::SessionManager::NotifyUserLoggedIn(
252 user_account_id, user_id_hash, browser_restart); 252 user_account_id, user_id_hash, browser_restart);
253 btl->AddLoginTimeMarker("UserLoggedIn-End", false); 253 btl->AddLoginTimeMarker("UserLoggedIn-End", false);
254 } 254 }
255 255
256 } // namespace chromeos 256 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698