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

Side by Side Diff: components/upload_list/upload_list.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « components/upload_list/upload_list.h ('k') | components/upload_list/upload_list_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/upload_list/upload_list.h" 5 #include "components/upload_list/upload_list.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include <iterator> 10 #include <iterator>
9 11
10 #include "base/bind.h" 12 #include "base/bind.h"
11 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
12 #include "base/location.h" 14 #include "base/location.h"
13 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
14 #include "base/strings/string_split.h" 16 #include "base/strings/string_split.h"
15 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
16 #include "base/thread_task_runner_handle.h" 18 #include "base/thread_task_runner_handle.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 delegate_->OnUploadListAvailable(); 121 delegate_->OnUploadListAvailable();
120 } 122 }
121 123
122 void UploadList::GetUploads(unsigned int max_count, 124 void UploadList::GetUploads(unsigned int max_count,
123 std::vector<UploadInfo>* uploads) { 125 std::vector<UploadInfo>* uploads) {
124 DCHECK(thread_checker_.CalledOnValidThread()); 126 DCHECK(thread_checker_.CalledOnValidThread());
125 std::copy(uploads_.begin(), 127 std::copy(uploads_.begin(),
126 uploads_.begin() + std::min<size_t>(uploads_.size(), max_count), 128 uploads_.begin() + std::min<size_t>(uploads_.size(), max_count),
127 std::back_inserter(*uploads)); 129 std::back_inserter(*uploads));
128 } 130 }
OLDNEW
« no previous file with comments | « components/upload_list/upload_list.h ('k') | components/upload_list/upload_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698