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

Side by Side Diff: base/environment.cc

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too 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 | « base/deferred_sequenced_task_runner_unittest.cc ('k') | base/environment_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 (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 "base/environment.h" 5 #include "base/environment.h"
6 6
7 #include <stddef.h>
8
7 #include <vector> 9 #include <vector>
8 10
9 #include "base/strings/string_piece.h" 11 #include "base/strings/string_piece.h"
10 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
11 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "build/build_config.h"
12 15
13 #if defined(OS_POSIX) 16 #if defined(OS_POSIX)
14 #include <stdlib.h> 17 #include <stdlib.h>
15 #elif defined(OS_WIN) 18 #elif defined(OS_WIN)
16 #include <windows.h> 19 #include <windows.h>
17 #endif 20 #endif
18 21
19 namespace base { 22 namespace base {
20 23
21 namespace { 24 namespace {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 for (size_t i = 0; i < result_indices.size(); i++) 230 for (size_t i = 0; i < result_indices.size(); i++)
228 result[i] = &storage_data[result_indices[i]]; 231 result[i] = &storage_data[result_indices[i]];
229 result[result_indices.size()] = 0; // Null terminator. 232 result[result_indices.size()] = 0; // Null terminator.
230 233
231 return result; 234 return result;
232 } 235 }
233 236
234 #endif // OS_POSIX 237 #endif // OS_POSIX
235 238
236 } // namespace base 239 } // namespace base
OLDNEW
« no previous file with comments | « base/deferred_sequenced_task_runner_unittest.cc ('k') | base/environment_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698