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

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

Issue 2477573002: [Presentation API] (3rd) (1-UA) Split PresentationServiceDelegateImpl(PSDImpl) (Closed)
Patch Set: fix windows compile error Created 3 years, 11 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/offscreen_presentation_manager_factory.cc
diff --git a/chrome/browser/media/router/offscreen_presentation_manager_factory.cc b/chrome/browser/media/router/offscreen_presentation_manager_factory.cc
index c5e3e5dbeda16254208f26c442235ee0f7c89cad..5965e25e49398d1d8d4007803b5b9957493d4f41 100644
--- a/chrome/browser/media/router/offscreen_presentation_manager_factory.cc
+++ b/chrome/browser/media/router/offscreen_presentation_manager_factory.cc
@@ -39,6 +39,12 @@ OffscreenPresentationManagerFactory::GetOrCreateForBrowserContext(
service_factory.Get().GetServiceForBrowserContext(context, true));
}
+// static
+OffscreenPresentationManagerFactory*
+OffscreenPresentationManagerFactory::GetInstanceForTest() {
+ return &service_factory.Get();
+}
+
OffscreenPresentationManagerFactory::OffscreenPresentationManagerFactory()
: BrowserContextKeyedServiceFactory(
"OffscreenPresentationManager",

Powered by Google App Engine
This is Rietveld 408576698