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

Unified Diff: chrome/browser/media/router/media_router_mojo_impl_factory.cc

Issue 1228863005: [MediaRouter] The minimal change to make everything build on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the include for MediaRouterDialogControllerImpl Created 5 years, 5 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_mojo_impl_factory.cc
diff --git a/chrome/browser/media/router/media_router_mojo_impl_factory.cc b/chrome/browser/media/router/media_router_mojo_impl_factory.cc
deleted file mode 100644
index 1e2c73552bf77fa973bf8bbf8bb590331233e5ef..0000000000000000000000000000000000000000
--- a/chrome/browser/media/router/media_router_mojo_impl_factory.cc
+++ /dev/null
@@ -1,56 +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.
-
-#include "chrome/browser/media/router/media_router_mojo_impl_factory.h"
-
-#include "chrome/browser/media/router/media_router_mojo_impl.h"
-#include "components/keyed_service/content/browser_context_dependency_manager.h"
-#include "extensions/browser/process_manager.h"
-#include "extensions/browser/process_manager_factory.h"
-
-using content::BrowserContext;
-
-namespace media_router {
-
-namespace {
-
-base::LazyInstance<MediaRouterMojoImplFactory> service_factory =
- LAZY_INSTANCE_INITIALIZER;
-
-} // namespace
-
-// static
-MediaRouterMojoImpl* MediaRouterMojoImplFactory::GetApiForBrowserContext(
- BrowserContext* context) {
- DCHECK(context);
-
- return static_cast<MediaRouterMojoImpl*>(
- service_factory.Get().GetServiceForBrowserContext(context, true));
-}
-
-MediaRouterMojoImplFactory::MediaRouterMojoImplFactory()
- : BrowserContextKeyedServiceFactory(
- "MediaRouterMojoImpl",
- BrowserContextDependencyManager::GetInstance()) {
- // MediaRouterMojoImpl depends on ProcessManager.
- DependsOn(extensions::ProcessManagerFactory::GetInstance());
-}
-
-MediaRouterMojoImplFactory::~MediaRouterMojoImplFactory() {
-}
-
-KeyedService* MediaRouterMojoImplFactory::BuildServiceInstanceFor(
- BrowserContext* context) const {
- return new MediaRouterMojoImpl(extensions::ProcessManager::Get(context));
-}
-
-BrowserContext* MediaRouterMojoImplFactory::GetBrowserContextToUse(
- BrowserContext* context) const {
- // Always use the input context. This means that an incognito context will
- // have its own MediaRouterMojoImpl service, rather than sharing it with its
- // original non-incognito context.
- return context;
-}
-
-} // namespace media_router

Powered by Google App Engine
This is Rietveld 408576698