Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index f881ccefa2c2f2fa604b559cc9845a50778eccce..388b4528ab31d4f954d8334d1a59be1f88de0860 100644 |
--- a/chrome/test/base/testing_profile.cc |
+++ b/chrome/test/base/testing_profile.cc |
@@ -248,11 +248,7 @@ void TestingProfile::FinishInit() { |
} |
TestingProfile::~TestingProfile() { |
- DCHECK(content::NotificationService::current()); |
- content::NotificationService::current()->Notify( |
- chrome::NOTIFICATION_PROFILE_DESTROYED, |
- content::Source<Profile>(static_cast<Profile*>(this)), |
- content::NotificationService::NoDetails()); |
+ MaybeSendDestroyedNotification(); |
profile_dependency_manager_->DestroyProfileServices(this); |