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

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

Issue 933503004: Always load signin profile on Chrome OS startup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final nits. Created 5 years, 10 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 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 &&
+ profile->GetPath().BaseName().value() == chrome::kInitialProfile;
}
// static

Powered by Google App Engine
This is Rietveld 408576698