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

Unified Diff: chrome/browser/search_engines/template_url_service_factory.cc

Issue 10535113: Add dependencies on HistoryService/BookmarkModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/search_engines/template_url_service_factory.cc
diff --git a/chrome/browser/search_engines/template_url_service_factory.cc b/chrome/browser/search_engines/template_url_service_factory.cc
index 90cc93a358cb707ba85e796fc90e5456abdd5d1b..4750e2762a25a37c94c67a1e1413c729ee10450b 100644
--- a/chrome/browser/search_engines/template_url_service_factory.cc
+++ b/chrome/browser/search_engines/template_url_service_factory.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/google/google_url_tracker_factory.h"
+#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/browser/search_engines/template_url_service.h"
@@ -24,9 +25,8 @@ TemplateURLServiceFactory::TemplateURLServiceFactory()
: ProfileKeyedServiceFactory("TemplateURLServiceFactory",
ProfileDependencyManager::GetInstance()) {
DependsOn(GoogleURLTrackerFactory::GetInstance());
+ DependsOn(HistoryServiceFactory::GetInstance());
DependsOn(WebDataServiceFactory::GetInstance());
- // TODO(erg): For Shutdown() order, we need to:
- // DependsOn(HistoryServiceFactory::GetInstance());
}
TemplateURLServiceFactory::~TemplateURLServiceFactory() {}

Powered by Google App Engine
This is Rietveld 408576698