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

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: 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 | « no previous file | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 649a8fa4f888a1dfb35a5c60f8d2dc9c27a56a66..67fbe65f3620ff7bfb0b6c3354c6b3a437e5cfaf 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -250,7 +250,7 @@ Profile* Profile::CreateProfile(const FilePath& path) {
}
// static
-Profile* Profile::CreateProfileAsync(const FilePath&path,
+Profile* Profile::CreateProfileAsync(const FilePath& path,
Profile::Delegate* delegate) {
DCHECK(delegate);
// This is safe while all file operations are done on the FILE thread.
@@ -435,6 +435,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) {
@@ -736,7 +741,7 @@ Profile* ProfileImpl::GetOffTheRecordProfile() {
off_the_record_profile_.swap(p);
NotificationService::current()->Notify(
- chrome::NOTIFICATION_OTR_PROFILE_CREATED,
+ chrome::NOTIFICATION_PROFILE_CREATED,
Source<Profile>(off_the_record_profile_.get()),
NotificationService::NoDetails());
}
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698