Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / media / webrtc_log_upload_list.cc
blob15c2963a8a01d45f17338ef098ceace93f6839b4
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"
12 namespace {
14 const char* kWebRtcLogListFilename = "webrtc_log_uploads.log";
18 // static
19 WebRtcLogUploadList* WebRtcLogUploadList::Create(Delegate* delegate,
20 Profile* profile) {
21 return new WebRtcLogUploadList(delegate, GetFilePathForProfile(profile));
24 // static
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() {}