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

Unified Diff: chrome/test/testing_profile.cc

Issue 7383012: Start and stop the safe browsing service depending on whether any profile is using it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 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
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/testing_profile.cc
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
index 8433c501e3dc4c9a81939fe61bf516e63feb2f58..4778a9846be69ec82b22ecd7e033a913230f61f5 100644
--- a/chrome/test/testing_profile.cc
+++ b/chrome/test/testing_profile.cc
@@ -165,6 +165,11 @@ TestingProfile::TestingProfile()
SessionServiceFactory::GetInstance()->SetTestingFactory(this, NULL);
TabRestoreServiceFactory::GetInstance()->SetTestingFactory(this, NULL);
TemplateURLServiceFactory::GetInstance()->SetTestingFactory(this, NULL);
+
+ NotificationService::current()->Notify(
+ chrome::NOTIFICATION_PROFILE_CREATED,
+ Source<Profile>(static_cast<Profile*>(this)),
+ NotificationService::NoDetails());
}
TestingProfile::~TestingProfile() {
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698