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

Unified Diff: chrome/browser/profiles/profile_impl.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: Added test, simplified threading issue 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
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 0cbc653fe489f536df0a09c2f0652d9f36034197..e841ef5bfae364e5fec32604b3cb7e58074519f0 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -427,6 +427,11 @@ void ProfileImpl::DoFinalInit() {
// Creation has been finished.
if (delegate_)
delegate_->OnProfileCreated(this, true);
+
+ NotificationService::current()->Notify(
+ chrome::NOTIFICATION_PROFILE_CREATED,
+ Source<Profile>(this),
+ NotificationService::NoDetails());
}
void ProfileImpl::InitExtensions(bool extensions_enabled) {
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager.cc » ('j') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698