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