Chromium Code Reviews| 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 9f78be2c6245fd382d14063d8b40b9e4c2368a73..7e69cc750886fc814ae7e2e144f78d17462ec4ef 100644 |
| --- a/chrome/browser/chromeos/profiles/profile_helper.cc |
| +++ b/chrome/browser/chromeos/profiles/profile_helper.cc |
| @@ -141,7 +141,8 @@ base::FilePath ProfileHelper::GetUserProfileDir( |
| // static |
| bool ProfileHelper::IsSigninProfile(const Profile* profile) { |
| - return profile->GetPath().BaseName().value() == chrome::kInitialProfile; |
| + return profile && |
|
mtomasz
2015/02/26 04:27:50
nit: Passing null doesn't make sense. Can we add a
Ivan Podogov
2015/02/26 11:02:08
I looked at the functions above and below this one
|
| + profile->GetPath().BaseName().value() == chrome::kInitialProfile; |
| } |
| // static |