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

Unified Diff: chrome/browser/profile_resetter/automatic_profile_resetter_factory.cc

Issue 27030002: Added collecting of data to be fed to the JTL interpreter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to ToT. Created 7 years, 2 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/profile_resetter/automatic_profile_resetter_factory.cc
diff --git a/chrome/browser/profile_resetter/automatic_profile_resetter_factory.cc b/chrome/browser/profile_resetter/automatic_profile_resetter_factory.cc
index 90971de6b9cd8473e0dbe9a335308cf7acf23547..10bd7c3fd85adb3a05ac39cc06ceb8c2214d5d1f 100644
--- a/chrome/browser/profile_resetter/automatic_profile_resetter_factory.cc
+++ b/chrome/browser/profile_resetter/automatic_profile_resetter_factory.cc
@@ -40,7 +40,9 @@ void AutomaticProfileResetterFactory::RegisterPrefs(
AutomaticProfileResetterFactory::AutomaticProfileResetterFactory()
: BrowserContextKeyedServiceFactory(
"AutomaticProfileResetter",
- BrowserContextDependencyManager::GetInstance()) {}
+ BrowserContextDependencyManager::GetInstance()) {
+ DependsOn(TemplateURLServiceFactory::GetInstance());
+}
AutomaticProfileResetterFactory::~AutomaticProfileResetterFactory() {}
@@ -49,7 +51,7 @@ AutomaticProfileResetterFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
Profile* profile = Profile::FromBrowserContext(context);
AutomaticProfileResetter* service = new AutomaticProfileResetter(profile);
- service->Initialize();
+ service->Activate();
return service;
}
@@ -61,8 +63,8 @@ void AutomaticProfileResetterFactory::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
}
-bool AutomaticProfileResetterFactory::ServiceIsCreatedWithBrowserContext()
- const {
+bool AutomaticProfileResetterFactory::
+ ServiceIsCreatedWithBrowserContext() const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698