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

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

Issue 2477573002: [Presentation API] (3rd) (1-UA) Split PresentationServiceDelegateImpl(PSDImpl) (Closed)
Patch Set: resolve code review comments from Derek Created 4 years, 1 month 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 1f8721c6041c87d9bd5adf82da884e01843a77a8..a23b90e6b3f60236575f3c909ce5ccbf61c4bb1c 100644
--- a/chrome/browser/media/router/offscreen_presentation_manager_factory.cc
+++ b/chrome/browser/media/router/offscreen_presentation_manager_factory.cc
@@ -50,6 +50,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