Index: chrome/test/base/testing_profile_manager.cc |
diff --git a/chrome/test/base/testing_profile_manager.cc b/chrome/test/base/testing_profile_manager.cc |
index e96f2a54799495f914989a39211c50ae9ef55033..f8273ee41819ce33fed3dc4ec82545188b5ba22e 100644 |
--- a/chrome/test/base/testing_profile_manager.cc |
+++ b/chrome/test/base/testing_profile_manager.cc |
@@ -79,12 +79,12 @@ void TestingProfileManager::DeleteTestingProfile(const std::string& name) { |
TestingProfilesMap::iterator it = testing_profiles_.find(name); |
DCHECK(it != testing_profiles_.end()); |
- scoped_ptr<TestingProfile> profile(it->second); |
- |
- profile_manager_->profiles_info_.erase(profile->GetPath()); |
+ TestingProfile* profile = it->second; |
ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache(); |
cache.DeleteProfileFromCache(profile->GetPath()); |
+ |
+ profile_manager_->profiles_info_.erase(profile->GetPath()); |
} |
ProfileManager* TestingProfileManager::profile_manager() { |