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_log_util.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/files/file_enumerator.h" | 9 #include "base/files/file_enumerator.h" |
8 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
10 #include "base/time/time.h" | 13 #include "base/time/time.h" |
11 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/media/webrtc_log_list.h" | 15 #include "chrome/browser/media/webrtc_log_list.h" |
13 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
15 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
16 | 19 |
17 namespace { | 20 namespace { |
18 | 21 |
19 const int kDaysToKeepLogs = 5; | 22 const int kDaysToKeepLogs = 5; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 size_t profiles_count = profile_cache.GetNumberOfProfiles(); | 112 size_t profiles_count = profile_cache.GetNumberOfProfiles(); |
110 for (size_t i = 0; i < profiles_count; ++i) { | 113 for (size_t i = 0; i < profiles_count; ++i) { |
111 content::BrowserThread::PostTask( | 114 content::BrowserThread::PostTask( |
112 content::BrowserThread::FILE, | 115 content::BrowserThread::FILE, |
113 FROM_HERE, | 116 FROM_HERE, |
114 base::Bind(&DeleteOldWebRtcLogFiles, | 117 base::Bind(&DeleteOldWebRtcLogFiles, |
115 WebRtcLogList::GetWebRtcLogDirectoryForProfile( | 118 WebRtcLogList::GetWebRtcLogDirectoryForProfile( |
116 profile_cache.GetPathOfProfileAtIndex(i)))); | 119 profile_cache.GetPathOfProfileAtIndex(i)))); |
117 } | 120 } |
118 } | 121 } |
OLD | NEW |