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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 6766004: Create a ProfileDependencyManager to order ProfileKeyedService destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix improper usage of static_cast<> in existing mac code. Created 9 years, 9 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 5b60dc810930aea92fe9153bb550918a35124209..32e7b7030832c37e945c1cf58da18581f96a5224 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -56,6 +56,7 @@
#include "chrome/browser/prefs/pref_value_store.h"
#include "chrome/browser/prerender/prerender_manager.h"
#include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h"
+#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/search_engines/template_url_fetcher.h"
#include "chrome/browser/search_engines/template_url_model.h"
@@ -529,6 +530,8 @@ ProfileImpl::~ProfileImpl() {
GetPolicyConnector()->Shutdown();
+ ProfileDependencyManager::GetInstance()->DestroyProfileServices(this);
+
tab_restore_service_ = NULL;
StopCreateSessionServiceTimer();
« no previous file with comments | « chrome/browser/profiles/profile_dependency_manager_unittest.cc ('k') | chrome/browser/profiles/profile_keyed_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698