OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "chrome/browser/media/webrtc_log_util.h" | 5 #include "chrome/browser/media/webrtc/webrtc_log_util.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/files/file_enumerator.h" | 12 #include "base/files/file_enumerator.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/media/webrtc_log_list.h" | 18 #include "chrome/browser/media/webrtc/webrtc_log_list.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/browser/profiles/profile_attributes_entry.h" | 20 #include "chrome/browser/profiles/profile_attributes_entry.h" |
21 #include "chrome/browser/profiles/profile_attributes_storage.h" | 21 #include "chrome/browser/profiles/profile_attributes_storage.h" |
22 #include "chrome/browser/profiles/profile_manager.h" | 22 #include "chrome/browser/profiles/profile_manager.h" |
23 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 const int kDaysToKeepLogs = 5; | 27 const int kDaysToKeepLogs = 5; |
28 | 28 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 GetAllProfilesAttributes(); | 117 GetAllProfilesAttributes(); |
118 for (ProfileAttributesEntry* entry : entries) { | 118 for (ProfileAttributesEntry* entry : entries) { |
119 content::BrowserThread::PostTask( | 119 content::BrowserThread::PostTask( |
120 content::BrowserThread::FILE, | 120 content::BrowserThread::FILE, |
121 FROM_HERE, | 121 FROM_HERE, |
122 base::Bind(&DeleteOldWebRtcLogFiles, | 122 base::Bind(&DeleteOldWebRtcLogFiles, |
123 WebRtcLogList::GetWebRtcLogDirectoryForProfile( | 123 WebRtcLogList::GetWebRtcLogDirectoryForProfile( |
124 entry->GetPath()))); | 124 entry->GetPath()))); |
125 } | 125 } |
126 } | 126 } |
OLD | NEW |