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

Unified Diff: chrome/browser/protector/protector_service_factory.cc

Issue 11493003: Remove the protector service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix implicit ExtensionSystem -> TemplateURLService dependency Created 8 years 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 | « chrome/browser/protector/protector_service_factory.h ('k') | chrome/browser/protector/protector_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/protector/protector_service_factory.cc
diff --git a/chrome/browser/protector/protector_service_factory.cc b/chrome/browser/protector/protector_service_factory.cc
deleted file mode 100644
index 4d854e3dc8ac2d01c6f28b6a4115bd196264a94b..0000000000000000000000000000000000000000
--- a/chrome/browser/protector/protector_service_factory.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/protector/protector_service_factory.h"
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_dependency_manager.h"
-#include "chrome/browser/protector/protected_prefs_watcher.h"
-#include "chrome/browser/protector/protector_service.h"
-#include "chrome/browser/search_engines/template_url_service_factory.h"
-
-namespace protector {
-
-// static
-ProtectorService* ProtectorServiceFactory::GetForProfile(Profile* profile) {
- return static_cast<ProtectorService*>(
- GetInstance()->GetServiceForProfile(profile, true));
-}
-
-// static
-ProtectorServiceFactory* ProtectorServiceFactory::GetInstance() {
- return Singleton<ProtectorServiceFactory>::get();
-}
-
-ProtectorServiceFactory::ProtectorServiceFactory()
- : ProfileKeyedServiceFactory("ProtectorService",
- ProfileDependencyManager::GetInstance()) {
- // Dependencies for the correct service shutdown order.
- DependsOn(GlobalErrorServiceFactory::GetInstance());
- DependsOn(TemplateURLServiceFactory::GetInstance());
-}
-
-ProtectorServiceFactory::~ProtectorServiceFactory() {
-}
-
-ProfileKeyedService* ProtectorServiceFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new ProtectorService(profile);
-}
-
-void ProtectorServiceFactory::RegisterUserPrefs(PrefService* user_prefs) {
- ProtectedPrefsWatcher::RegisterUserPrefs(user_prefs);
-}
-
-bool ProtectorServiceFactory::ServiceIsCreatedWithProfile() const {
- // ProtectorService watches changes for protected prefs so it must be started
- // right with the profile creation.
- return true;
-}
-
-bool ProtectorServiceFactory::ServiceRedirectedInIncognito() const {
- return true;
-}
-
-} // namespace protector
« no previous file with comments | « chrome/browser/protector/protector_service_factory.h ('k') | chrome/browser/protector/protector_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698