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 9a0ed359e027b479444f1de4e679df58d4132974..ce2c56be12983a890c9a220f8ab51eb1855d2c8e 100644 |
| --- a/chrome/browser/profiles/profile_manager.cc |
| +++ b/chrome/browser/profiles/profile_manager.cc |
| @@ -731,6 +731,12 @@ void ProfileManager::ScheduleProfileForDeletion( |
| const CreateCallback& callback) { |
| DCHECK(profiles::IsMultipleProfilesEnabled()); |
| + if (IsProfileMarkedForDeletion(profile_dir)) { |
| + LOG(WARNING) << "Profile already marked for deletion: " |
| + << profile_dir.value(); |
| + return; |
|
Dan Beam
2016/05/13 03:39:31
i vote for this solution but without error and usi
|
| + } |
| + |
| // Cancel all in-progress downloads before deleting the profile to prevent a |
| // "Do you want to exit Google Chrome and cancel the downloads?" prompt |
| // (crbug.com/336725). |