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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // TODO(grunell): Shouldn't all the webrtc_internals* files be excluded from the | 42 // TODO(grunell): Shouldn't all the webrtc_internals* files be excluded from the |
43 // build if WebRTC is disabled? | 43 // build if WebRTC is disabled? |
44 #if defined(ENABLE_WEBRTC) | 44 #if defined(ENABLE_WEBRTC) |
45 aec_dump_file_path_ = | 45 aec_dump_file_path_ = |
46 GetContentClient()->browser()->GetDefaultDownloadDirectory(); | 46 GetContentClient()->browser()->GetDefaultDownloadDirectory(); |
47 if (aec_dump_file_path_.empty()) { | 47 if (aec_dump_file_path_.empty()) { |
48 // In this case the default path (|aec_dump_file_path_|) will be empty and | 48 // In this case the default path (|aec_dump_file_path_|) will be empty and |
49 // the platform default path will be used in the file dialog (with no | 49 // the platform default path will be used in the file dialog (with no |
50 // default file name). See SelectFileDialog::SelectFile. On Android where | 50 // default file name). See SelectFileDialog::SelectFile. On Android where |
51 // there's no dialog we'll fail to open the file. | 51 // there's no dialog we'll fail to open the file. |
52 LOG(WARNING) << "Could not get the download directory."; | 52 VLOG(1) << "Could not get the download directory."; |
53 } else { | 53 } else { |
54 aec_dump_file_path_ = | 54 aec_dump_file_path_ = |
55 aec_dump_file_path_.Append(FILE_PATH_LITERAL("audio.aecdump")); | 55 aec_dump_file_path_.Append(FILE_PATH_LITERAL("audio.aecdump")); |
56 } | 56 } |
57 #endif // defined(ENABLE_WEBRTC) | 57 #endif // defined(ENABLE_WEBRTC) |
58 } | 58 } |
59 | 59 |
60 WebRTCInternals::~WebRTCInternals() { | 60 WebRTCInternals::~WebRTCInternals() { |
61 } | 61 } |
62 | 62 |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 aec_dump_enabled_ = true; | 346 aec_dump_enabled_ = true; |
347 for (RenderProcessHost::iterator i( | 347 for (RenderProcessHost::iterator i( |
348 content::RenderProcessHost::AllHostsIterator()); | 348 content::RenderProcessHost::AllHostsIterator()); |
349 !i.IsAtEnd(); i.Advance()) { | 349 !i.IsAtEnd(); i.Advance()) { |
350 i.GetCurrentValue()->EnableAecDump(aec_dump_file_path_); | 350 i.GetCurrentValue()->EnableAecDump(aec_dump_file_path_); |
351 } | 351 } |
352 } | 352 } |
353 #endif | 353 #endif |
354 | 354 |
355 } // namespace content | 355 } // namespace content |
OLD | NEW |