Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8447)

Unified Diff: chrome/test/base/testing_profile.cc

Issue 10824020: Move PROFILE_DESTROYED notification to ProfileDestroyer and observe it in ExtensionProcessManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: destroy original profile->destroy incognito EPM Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« chrome/browser/profiles/profile_destroyer.cc ('K') | « chrome/browser/profiles/profile_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698