Don't send a SHChangeNotify for creating an app icon when creating a shortcut.
[chromium-blink-merge.git] / media / mojo / services / mojo_renderer_factory.cc
blob73ef9bf0cfc17e0a8098993e4e179dc42c121c08
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "media/mojo/services/mojo_renderer_factory.h"
7 #include "base/single_thread_task_runner.h"
8 #include "media/mojo/interfaces/media_renderer.mojom.h"
9 #include "media/mojo/services/mojo_renderer_impl.h"
11 namespace media {
13 MojoRendererFactory::MojoRendererFactory(
14 scoped_ptr<ServiceProvider> service_provider)
15 : service_provider_(service_provider.Pass()) {
16 DCHECK(service_provider_.get());
19 MojoRendererFactory::~MojoRendererFactory() {
22 scoped_ptr<Renderer> MojoRendererFactory::CreateRenderer(
23 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
24 AudioRendererSink* /* audio_renderer_sink */) {
25 mojo::MediaRendererPtr mojo_media_renderer;
26 service_provider_->ConnectToService(&mojo_media_renderer);
27 return scoped_ptr<Renderer>(
28 new MojoRendererImpl(media_task_runner, mojo_media_renderer.Pass()));
31 } // namespace media