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

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

Issue 780363003: Delete deprecated synced notifications code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup 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.h
diff --git a/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.h b/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.h
deleted file mode 100644
index 66d36cf066ee0f2026e9c674543a168c57d3515c..0000000000000000000000000000000000000000
--- a/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.h
+++ /dev/null
@@ -1,46 +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.
-
-#ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_FACTORY_H_
-#define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_FACTORY_H_
-
-#include "base/memory/singleton.h"
-#include "chrome/browser/profiles/profile.h"
-#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-
-namespace base {
-class CommandLine;
-}
-
-namespace notifier {
-
-class ChromeNotifierService;
-
-class ChromeNotifierServiceFactory : public BrowserContextKeyedServiceFactory {
- public:
- static ChromeNotifierService* GetForProfile(
- Profile* profile, Profile::ServiceAccessType service_access_type);
-
- static ChromeNotifierServiceFactory* GetInstance();
-
- // Based on command line switches, make the call to use SyncedNotifications or
- // not.
- // TODO(petewil): Remove this when the SyncedNotifications feature is ready
- // to be turned on by default, and just use a disable switch instead then.
- static bool UseSyncedNotifications(base::CommandLine* command_line);
-
- private:
- friend struct DefaultSingletonTraits<ChromeNotifierServiceFactory>;
-
- ChromeNotifierServiceFactory();
- ~ChromeNotifierServiceFactory() override;
-
- // BrowserContextKeyedServiceFactory:
- KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const override;
-};
-
-} // namespace notifier
-
-#endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698