Index: chrome/browser/profiles/profile_manager.cc |
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc |
index 67acac17bb9292879caed2b9e2b9722271896fc3..c0f2239f80cb0742478d5b1a64c4b26fda7ea36d 100644 |
--- a/chrome/browser/profiles/profile_manager.cc |
+++ b/chrome/browser/profiles/profile_manager.cc |
@@ -459,6 +459,9 @@ void ProfileManager::CreateProfileAsync( |
} |
bool ProfileManager::IsValidProfile(Profile* profile) { |
+ ProfileManager* pm = g_browser_process->profile_manager(); |
Alexei Svitkine (slow)
2015/08/31 17:26:31
Nit: Just inline this into the if, if you're only
amohammadkhan
2015/09/01 04:52:48
Done.
|
+ if (!pm) // Is NULL when running unit tests. |
+ return false; |
for (ProfilesInfoMap::iterator iter = profiles_info_.begin(); |
iter != profiles_info_.end(); ++iter) { |
if (iter->second->created) { |