OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/browser/media/webrtc_internals.h" | 5 #include "content/browser/media/webrtc_internals.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "content/browser/media/webrtc_internals_ui_observer.h" | 9 #include "content/browser/media/webrtc_internals_ui_observer.h" |
10 #include "content/browser/web_contents/web_contents_view.h" | 10 #include "content/browser/web_contents/web_contents_view.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
239 FILE_PATH_LITERAL(""), | 239 FILE_PATH_LITERAL(""), |
240 web_contents->GetTopLevelNativeWindow(), | 240 web_contents->GetTopLevelNativeWindow(), |
241 NULL); | 241 NULL); |
242 #endif | 242 #endif |
243 #endif | 243 #endif |
244 } | 244 } |
245 | 245 |
246 void WebRTCInternals::DisableAecDump() { | 246 void WebRTCInternals::DisableAecDump() { |
247 #if defined(ENABLE_WEBRTC) | 247 #if defined(ENABLE_WEBRTC) |
248 aec_dump_enabled_ = false; | 248 aec_dump_enabled_ = false; |
249 select_file_dialog_ = NULL; | |
Henrik Grunell
2014/05/30 11:24:39
Add a comment why we do this. (If user unchecks bo
no longer working on chromium
2014/06/02 08:34:14
Done.
| |
249 for (RenderProcessHost::iterator i( | 250 for (RenderProcessHost::iterator i( |
250 content::RenderProcessHost::AllHostsIterator()); | 251 content::RenderProcessHost::AllHostsIterator()); |
251 !i.IsAtEnd(); i.Advance()) { | 252 !i.IsAtEnd(); i.Advance()) { |
252 i.GetCurrentValue()->DisableAecDump(); | 253 i.GetCurrentValue()->DisableAecDump(); |
253 } | 254 } |
254 #endif | 255 #endif |
255 } | 256 } |
256 | 257 |
257 void WebRTCInternals::ResetForTesting() { | 258 void WebRTCInternals::ResetForTesting() { |
258 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 259 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
346 aec_dump_enabled_ = true; | 347 aec_dump_enabled_ = true; |
347 for (RenderProcessHost::iterator i( | 348 for (RenderProcessHost::iterator i( |
348 content::RenderProcessHost::AllHostsIterator()); | 349 content::RenderProcessHost::AllHostsIterator()); |
349 !i.IsAtEnd(); i.Advance()) { | 350 !i.IsAtEnd(); i.Advance()) { |
350 i.GetCurrentValue()->EnableAecDump(aec_dump_file_path_); | 351 i.GetCurrentValue()->EnableAecDump(aec_dump_file_path_); |
351 } | 352 } |
352 } | 353 } |
353 #endif | 354 #endif |
354 | 355 |
355 } // namespace content | 356 } // namespace content |
OLD | NEW |