| Index: chrome/browser/chromeos/login/login_utils.cc
|
| diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
|
| index 5ed36b9b297bad1a5a7f3a0c60d8bb0b257eea8c..37566aecab7633100390310472e9760ebd194e33 100644
|
| --- a/chrome/browser/chromeos/login/login_utils.cc
|
| +++ b/chrome/browser/chromeos/login/login_utils.cc
|
| @@ -50,8 +50,9 @@
|
| #include "chrome/browser/chromeos/login/startup_utils.h"
|
| #include "chrome/browser/chromeos/login/ui/input_events_blocker.h"
|
| #include "chrome/browser/chromeos/login/ui/login_display_host.h"
|
| +#include "chrome/browser/chromeos/login/user_flow.h"
|
| +#include "chrome/browser/chromeos/login/users/chrome_user_manager.h"
|
| #include "chrome/browser/chromeos/login/users/supervised_user_manager.h"
|
| -#include "chrome/browser/chromeos/login/users/user_manager.h"
|
| #include "chrome/browser/chromeos/profiles/profile_helper.h"
|
| #include "chrome/browser/chromeos/settings/cros_settings.h"
|
| #include "chrome/browser/extensions/extension_service.h"
|
| @@ -80,6 +81,7 @@
|
| #include "chromeos/settings/cros_settings_names.h"
|
| #include "components/signin/core/browser/signin_manager.h"
|
| #include "components/user_manager/user.h"
|
| +#include "components/user_manager/user_manager.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/notification_service.h"
|
| #include "google_apis/gaia/gaia_auth_consumer.h"
|
| @@ -106,11 +108,11 @@ CommandLine CreatePerSessionCommandLine(Profile* profile) {
|
| // Returns true if restart is needed to apply per-session flags.
|
| bool NeedRestartToApplyPerSessionFlags(const CommandLine& user_flags) {
|
| // Don't restart browser if it is not first profile in session.
|
| - if (UserManager::Get()->GetLoggedInUsers().size() != 1)
|
| + if (user_manager::UserManager::Get()->GetLoggedInUsers().size() != 1)
|
| return false;
|
|
|
| // Only restart if needed and if not going into managed mode.
|
| - if (UserManager::Get()->IsLoggedInAsSupervisedUser())
|
| + if (user_manager::UserManager::Get()->IsLoggedInAsSupervisedUser())
|
| return false;
|
|
|
| if (about_flags::AreSwitchesIdenticalToCurrentCommandLine(
|
| @@ -247,8 +249,8 @@ void LoginUtilsImpl::DoBrowserLaunchInternal(Profile* profile,
|
| return;
|
| }
|
|
|
| - if (!UserManager::Get()->GetCurrentUserFlow()->ShouldLaunchBrowser()) {
|
| - UserManager::Get()->GetCurrentUserFlow()->LaunchExtraSteps(profile);
|
| + if (!ChromeUserManager::Get()->GetCurrentUserFlow()->ShouldLaunchBrowser()) {
|
| + ChromeUserManager::Get()->GetCurrentUserFlow()->LaunchExtraSteps(profile);
|
| return;
|
| }
|
|
|
| @@ -284,9 +286,9 @@ void LoginUtilsImpl::DoBrowserLaunchInternal(Profile* profile,
|
| // browser before it is dereferenced by the login host.
|
| if (login_host)
|
| login_host->Finalize();
|
| - UserManager::Get()->SessionStarted();
|
| + user_manager::UserManager::Get()->SessionStarted();
|
| chromeos::BootTimesLoader::Get()->LoginDone(
|
| - chromeos::UserManager::Get()->IsCurrentUserNew());
|
| + user_manager::UserManager::Get()->IsCurrentUserNew());
|
| }
|
|
|
| // static
|
| @@ -365,7 +367,7 @@ bool LoginUtilsImpl::RestartToApplyPerSessionFlagsIfNeed(Profile* profile,
|
| flags.assign(user_flags.argv().begin() + 1, user_flags.argv().end());
|
| VLOG(1) << "Restarting to apply per-session flags...";
|
| DBusThreadManager::Get()->GetSessionManagerClient()->SetFlagsForUser(
|
| - UserManager::Get()->GetActiveUser()->email(), flags);
|
| + user_manager::UserManager::Get()->GetActiveUser()->email(), flags);
|
| AttemptRestart(profile);
|
| return true;
|
| }
|
|
|