Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: chrome/browser/media/webrtc_log_list.cc

Issue 2307083002: Cleanup: move WebRTC related files from chrome/browser/media to chrome/browser/media/webrtc/ (Closed)
Patch Set: Removed file wrongly resuscitated during rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/media/webrtc_log_list.h ('k') | chrome/browser/media/webrtc_log_uploader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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_list.h"
6
7 #include "base/files/file.h"
8 #include "base/files/file_path.h"
9 #include "base/files/file_util.h"
10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/common/chrome_paths.h"
12 #include "content/public/browser/browser_thread.h"
13
14 namespace {
15
16 const char kWebRtcLogDirectory[] = "WebRTC Logs";
17 const char kWebRtcLogListFilename[] = "Log List";
18
19 }
20
21 // static
22 UploadList* WebRtcLogList::CreateWebRtcLogList(UploadList::Delegate* delegate,
23 Profile* profile) {
24 base::FilePath log_list_path = GetWebRtcLogListFileForDirectory(
25 GetWebRtcLogDirectoryForProfile(profile->GetPath()));
26 return new UploadList(
27 delegate, log_list_path, content::BrowserThread::GetBlockingPool());
28 }
29
30 // static
31 base::FilePath WebRtcLogList::GetWebRtcLogDirectoryForProfile(
32 const base::FilePath& profile_path) {
33 DCHECK(!profile_path.empty());
34 return profile_path.AppendASCII(kWebRtcLogDirectory);
35 }
36
37 // static
38 base::FilePath WebRtcLogList::GetWebRtcLogListFileForDirectory(
39 const base::FilePath& dir) {
40 DCHECK(!dir.empty());
41 return dir.AppendASCII(kWebRtcLogListFilename);
42 }
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc_log_list.h ('k') | chrome/browser/media/webrtc_log_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698