diff options
Diffstat (limited to 'chrome')
| -rw-r--r-- | chrome/browser/browser_process_impl.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc index 87793fa..1fbefa1 100644 --- a/chrome/browser/browser_process_impl.cc +++ b/chrome/browser/browser_process_impl.cc @@ -270,6 +270,8 @@ bool BrowserProcessImpl::ShouldClearLocalState(FilePath* profile_path) { PathService::Get(chrome::DIR_USER_DATA, &user_data_dir); profile = profile_manager_->GetDefaultProfile(user_data_dir); + if (!profile) + return false; *profile_path = profile->GetPath(); return profile->GetPrefs()->GetBoolean(prefs::kClearSiteDataOnExit); } |
