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

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

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc_log_uploader_unittest.cc ('k') | chrome/browser/media/webrtc_logging_handler_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698