|
Minor cleanup to remove the static thread-safe methods on BrowserMainLoop. Initially I thought this would be one getter so it seemed fine, but now it has 3 and more are on the way. Switch to one static getter for this class, and then getters for the member variables. I used dependency injection to allow access to these objects from other threads, which also cleaned up tests a bit.
R=scherkus@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207871
Total comments: 6
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+155 lines, -142 lines) |
Patch |
 |
M |
chrome/browser/media/media_capture_devices_dispatcher.cc
|
View
|
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_main_loop.h
|
View
|
|
2 chunks |
+12 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_main_loop.cc
|
View
|
|
2 chunks |
+6 lines, -14 lines |
0 comments
|
Download
|
 |
M |
content/browser/media_devices_monitor.cc
|
View
|
1
2
|
1 chunk |
+13 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_input_renderer_host.h
|
View
|
1
|
3 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_input_renderer_host.cc
|
View
|
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host.h
|
View
|
|
3 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host.cc
|
View
|
|
7 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
|
View
|
|
3 chunks |
+2 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_host.h
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_host.cc
|
View
|
|
5 chunks |
+12 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/video_capture_host_unittest.cc
|
View
|
|
3 chunks |
+2 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/web_contents_audio_input_stream.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/web_contents_audio_input_stream.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_message_filter.h
|
View
|
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_message_filter.cc
|
View
|
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
|
5 chunks |
+32 lines, -29 lines |
0 comments
|
Download
|
 |
M |
content/browser/speech/speech_recognition_manager_impl.h
|
View
|
|
3 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/speech/speech_recognition_manager_impl.cc
|
View
|
|
4 chunks |
+20 lines, -16 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/media_devices_monitor.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/test/webrtc_audio_device_test.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|