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

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: Rollback unnecessary changes. 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 793376810cfd5d01f107167c88aa14a176c8dd34..36f8675873c5fdb873afe3812bdce8581088dac3 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(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