OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 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. |
| 4 |
| 5 #include "chrome/browser/media/webrtc_log_upload_list.h" |
| 6 |
| 7 #include "base/files/file_path.h" |
| 8 #include "base/path_service.h" |
| 9 #include "chrome/common/chrome_paths.h" |
| 10 |
| 11 // static |
| 12 const char* WebRtcLogUploadList::kWebRtcLogListFilename = |
| 13 "webrtc_log_uploads.log"; |
| 14 |
| 15 // static |
| 16 WebRtcLogUploadList* WebRtcLogUploadList::Create(Delegate* delegate) { |
| 17 base::FilePath log_dir_path; |
| 18 PathService::Get(chrome::DIR_USER_DATA, &log_dir_path); |
| 19 base::FilePath upload_log_path = |
| 20 log_dir_path.AppendASCII(kWebRtcLogListFilename); |
| 21 return new WebRtcLogUploadList(delegate, upload_log_path); |
| 22 } |
| 23 |
| 24 WebRtcLogUploadList::WebRtcLogUploadList(Delegate* delegate, |
| 25 const base::FilePath& upload_log_path) |
| 26 : UploadList(delegate, upload_log_path) {} |
| 27 |
| 28 WebRtcLogUploadList::~WebRtcLogUploadList() {} |
OLD | NEW |