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

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 2149603003: Use IsSigninProfile instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 3b49cbf2ebbd50e26f4e653df633ee1cfa5d20ea..0bf456f70a819fb782bcf593407024a320e1c893 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -1491,9 +1491,8 @@ void ProfileManager::SetNonPersonalProfilePrefs(Profile* profile) {
bool ProfileManager::ShouldGoOffTheRecord(Profile* profile) {
#if defined(OS_CHROMEOS)
- if (profile->GetPath().BaseName().value() == chrome::kInitialProfile) {
+ if (chromeos::ProfileHelper::IsSigninProfile(profile))
return true;
- }
#endif
return profile->IsGuestSession() || profile->IsSystemProfile();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698