Commit 2d17c6d0 authored by achuith's avatar achuith Committed by Commit bot

Use IsSigninProfile instead.

This is just code cleanup, IsSigninProfile does the same thing. This affects chromeos only.

BUG=
TBR=skuhne@chromium.org

Review-Url: https://codereview.chromium.org/2149603003
Cr-Commit-Position: refs/heads/master@{#405227}
parent 9ecb5856
......@@ -1492,9 +1492,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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment