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.
5 #include "chrome/browser/media/webrtc_log_upload_list.h"
7 #include "base/files/file_path.h"
8 #include "base/path_service.h"
9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/chrome_paths.h"
14 const char* kWebRtcLogListFilename
= "webrtc_log_uploads.log";
19 WebRtcLogUploadList
* WebRtcLogUploadList::Create(Delegate
* delegate
,
21 return new WebRtcLogUploadList(delegate
, GetFilePathForProfile(profile
));
25 base::FilePath
WebRtcLogUploadList::GetFilePathForProfile(Profile
* profile
) {
26 base::FilePath log_dir_path
= profile
->GetPath();
27 return log_dir_path
.AppendASCII(kWebRtcLogListFilename
);
30 WebRtcLogUploadList::WebRtcLogUploadList(Delegate
* delegate
,
31 const base::FilePath
& upload_log_path
)
32 : UploadList(delegate
, upload_log_path
) {}
34 WebRtcLogUploadList::~WebRtcLogUploadList() {}