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

Unified Diff: chrome/browser/media/router/media_router_impl_factory.h

Issue 1137993005: Remove Media Router impl and BrowserContext factory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/media/router/media_router_impl_factory.h
diff --git a/chrome/browser/media/router/media_router_impl_factory.h b/chrome/browser/media/router/media_router_impl_factory.h
deleted file mode 100644
index 9b638709054ff14213162ef86e171fd9cd30263b..0000000000000000000000000000000000000000
--- a/chrome/browser/media/router/media_router_impl_factory.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2015 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_MEDIA_ROUTER_MEDIA_ROUTER_IMPL_FACTORY_H_
-#define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_IMPL_FACTORY_H_
-
-#include "base/memory/singleton.h"
-#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-
-namespace content {
-class BrowserContext;
-} // namespace content
-
-namespace media_router {
-
-class MediaRouterImpl;
-
-// A factory that returns a MediaRouter object for a given BrowserContext,
-// creating one lazily if needed.
-class MediaRouterImplFactory : public BrowserContextKeyedServiceFactory {
- public:
- static MediaRouterImpl* GetMediaRouterForBrowserContext(
- content::BrowserContext* context);
- static MediaRouterImplFactory* GetInstance();
-
- private:
- friend struct DefaultSingletonTraits<MediaRouterImplFactory>;
-
- MediaRouterImplFactory();
- ~MediaRouterImplFactory() override;
-
- // BrowserContextKeyedBaseFactory
- KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* context) const override;
- content::BrowserContext* GetBrowserContextToUse(
- content::BrowserContext* context) const override;
-
- DISALLOW_COPY_AND_ASSIGN(MediaRouterImplFactory);
-};
-
-} // namespace media_router
-
-#endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_IMPL_FACTORY_H_
« no previous file with comments | « chrome/browser/media/router/media_router_impl.cc ('k') | chrome/browser/media/router/media_router_impl_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698