| Index: chrome/browser/chromeos/profiles/profile_helper.cc
|
| diff --git a/chrome/browser/chromeos/profiles/profile_helper.cc b/chrome/browser/chromeos/profiles/profile_helper.cc
|
| index 38f2a7310303092a46ca2c84d31ae403fe42a655..e5f44233941c06c9d0a85ef161300fa87205173b 100644
|
| --- a/chrome/browser/chromeos/profiles/profile_helper.cc
|
| +++ b/chrome/browser/chromeos/profiles/profile_helper.cc
|
| @@ -88,11 +88,6 @@ std::string ProfileHelper::GetUserIdHashFromProfile(Profile* profile) {
|
| profile_dir.length() - prefix.length());
|
| }
|
|
|
| -// static
|
| -bool ProfileHelper::IsSigninProfile(Profile* profile) {
|
| - return profile->GetPath().BaseName().value() == chrome::kInitialProfile;
|
| -}
|
| -
|
| void ProfileHelper::ProfileStartup(Profile* profile, bool process_startup) {
|
| // Initialize Chrome OS preferences like touch pad sensitivity. For the
|
| // preferences to work in the guest mode, the initialization has to be
|
| @@ -103,7 +98,7 @@ void ProfileHelper::ProfileStartup(Profile* profile, bool process_startup) {
|
|
|
| // Add observer so we can see when the first profile's session restore is
|
| // completed. After that, we won't need the default profile anymore.
|
| - if (!IsSigninProfile(profile) &&
|
| + if (!profile->IsLoginProfile() &&
|
| UserManager::Get()->IsLoggedInAsRegularUser() &&
|
| !UserManager::Get()->IsLoggedInAsStub()) {
|
| chromeos::OAuth2LoginManager* login_manager =
|
|
|