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

Unified Diff: chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.cc

Issue 780363003: Delete deprecated synced notifications code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.cc
diff --git a/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.cc b/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.cc
deleted file mode 100644
index a31f1ed9472c38a9954a0580662fe5c0c24b2ad2..0000000000000000000000000000000000000000
--- a/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2013 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/notifications/sync_notifier/chrome_notifier_service_factory.h"
-
-#include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h"
-#include "components/keyed_service/content/browser_context_dependency_manager.h"
-
-namespace notifier {
-
-// static
-ChromeNotifierService* ChromeNotifierServiceFactory::GetForProfile(
- Profile* profile, Profile::ServiceAccessType service_access_type) {
- return static_cast<ChromeNotifierService*>(
- GetInstance()->GetServiceForBrowserContext(profile, true));
-}
-
-// static
-ChromeNotifierServiceFactory* ChromeNotifierServiceFactory::GetInstance() {
- return Singleton<ChromeNotifierServiceFactory>::get();
-}
-
-
-ChromeNotifierServiceFactory::ChromeNotifierServiceFactory()
- : BrowserContextKeyedServiceFactory(
- "ChromeNotifierService",
- BrowserContextDependencyManager::GetInstance()) {
-}
-
-ChromeNotifierServiceFactory::~ChromeNotifierServiceFactory() {
-}
-
-KeyedService* ChromeNotifierServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* profile) const {
- ChromeNotifierService* chrome_notifier_service =
- new ChromeNotifierService(static_cast<Profile*>(profile));
- return chrome_notifier_service;
-}
-
-} // namespace notifier

Powered by Google App Engine
This is Rietveld 408576698