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

Side by Side Diff: chrome/browser/crash_upload_list.cc

Issue 9717039: Fixing "error C2039: 'back_inserter' : is not a member of 'std'" on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/crash_upload_list.h" 5 #include "chrome/browser/crash_upload_list.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator>
8 9
9 #include "base/bind.h" 10 #include "base/bind.h"
10 #include "base/file_path.h" 11 #include "base/file_path.h"
11 #include "base/file_util.h" 12 #include "base/file_util.h"
12 #include "base/path_service.h" 13 #include "base/path_service.h"
13 #include "base/string_number_conversions.h" 14 #include "base/string_number_conversions.h"
14 #include "base/string_split.h" 15 #include "base/string_split.h"
15 #if defined(OS_WIN) 16 #if defined(OS_WIN)
16 #include "chrome/browser/crash_upload_list_win.h" 17 #include "chrome/browser/crash_upload_list_win.h"
17 #endif 18 #endif
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void CrashUploadList::GetUploadedCrashes(unsigned int max_count, 101 void CrashUploadList::GetUploadedCrashes(unsigned int max_count,
101 std::vector<CrashInfo>* crashes) { 102 std::vector<CrashInfo>* crashes) {
102 std::copy(crashes_.begin(), 103 std::copy(crashes_.begin(),
103 crashes_.begin() + std::min<size_t>(crashes_.size(), max_count), 104 crashes_.begin() + std::min<size_t>(crashes_.size(), max_count),
104 std::back_inserter(*crashes)); 105 std::back_inserter(*crashes));
105 } 106 }
106 107
107 std::vector<CrashUploadList::CrashInfo>& CrashUploadList::crashes() { 108 std::vector<CrashUploadList::CrashInfo>& CrashUploadList::crashes() {
108 return crashes_; 109 return crashes_;
109 } 110 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698