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

Unified Diff: chrome/browser/chromeos/profiles/profile_helper.cc

Issue 53383002: ChromeOS: Remove ProfileHelper::IsSigninProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TestingProfile. Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
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 =
« no previous file with comments | « chrome/browser/chromeos/profiles/profile_helper.h ('k') | chrome/browser/notifications/message_center_settings_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698