Chromium Code Reviews| Index: chrome/browser/profiles/profile_manager.cc |
| diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc |
| index 892cef085b1ddcf97bb86483a5118f7a82fb74e1..46ee16a6432ffcc28aee1fa9ee50b6ddd6b7a169 100644 |
| --- a/chrome/browser/profiles/profile_manager.cc |
| +++ b/chrome/browser/profiles/profile_manager.cc |
| @@ -1374,8 +1374,13 @@ void ProfileManager::FinishDeletingProfile( |
| profile)->RequestStop(ProfileSyncService::CLEAR_DATA); |
| } |
| - ProfileMetrics::LogProfileDelete(cache.ProfileIsAuthenticatedAtIndex( |
| - cache.GetIndexOfProfileWithPath(profile_dir))); |
| + size_t profile_index = cache.GetIndexOfProfileWithPath(profile_dir); |
|
anthonyvd
2016/04/12 17:29:16
Can you use the new ProfileAttributesStorage inter
|
| + if (profile_index != std::string::npos) { |
| + ProfileMetrics::LogProfileDelete( |
| + cache.ProfileIsAuthenticatedAtIndex(profile_index)); |
| + } else { |
| + NOTREACHED(); |
| + } |
| // Some platforms store passwords in keychains. They should be removed. |
| scoped_refptr<password_manager::PasswordStore> password_store = |
| PasswordStoreFactory::GetForProfile( |