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

Side by Side Diff: components/html_viewer/media_factory.cc

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « components/html_viewer/html_document.cc ('k') | components/html_viewer/setup.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/html_viewer/media_factory.h" 5 #include "components/html_viewer/media_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // TODO(dalecurtis): Replace this with an interface to an actual mojo service; 162 // TODO(dalecurtis): Replace this with an interface to an actual mojo service;
163 // the AudioOutputStreamSink will not work in sandboxed processes. 163 // the AudioOutputStreamSink will not work in sandboxed processes.
164 return new media::AudioOutputStreamSink(); 164 return new media::AudioOutputStreamSink();
165 } 165 }
166 166
167 scoped_refptr<base::SingleThreadTaskRunner> 167 scoped_refptr<base::SingleThreadTaskRunner>
168 MediaFactory::GetMediaThreadTaskRunner() { 168 MediaFactory::GetMediaThreadTaskRunner() {
169 if (!media_thread_.IsRunning()) 169 if (!media_thread_.IsRunning())
170 media_thread_.Start(); 170 media_thread_.Start();
171 171
172 return media_thread_.message_loop_proxy(); 172 return media_thread_.task_runner();
173 } 173 }
174 #endif // !defined(OS_ANDROID) 174 #endif // !defined(OS_ANDROID)
175 175
176 } // namespace html_viewer 176 } // namespace html_viewer
OLDNEW
« no previous file with comments | « components/html_viewer/html_document.cc ('k') | components/html_viewer/setup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698