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

Side by Side Diff: components/filesystem/file_system_impl.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 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/filesystem/file_impl_unittest.cc ('k') | components/filesystem/util.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/filesystem/file_system_impl.h" 5 #include "components/filesystem/file_system_impl.h"
6 6
7 #include <stddef.h>
8
7 #include "base/command_line.h" 9 #include "base/command_line.h"
8 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
10 #include "base/files/scoped_file.h" 12 #include "base/files/scoped_file.h"
11 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
12 #include "base/logging.h" 14 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "build/build_config.h"
14 #include "components/filesystem/directory_impl.h" 17 #include "components/filesystem/directory_impl.h"
15 #include "components/filesystem/file_system_app.h" 18 #include "components/filesystem/file_system_app.h"
16 #include "mojo/application/public/cpp/application_connection.h" 19 #include "mojo/application/public/cpp/application_connection.h"
17 #include "url/gurl.h" 20 #include "url/gurl.h"
18 21
19 #if defined(OS_WIN) 22 #if defined(OS_WIN)
20 #include "base/base_paths_win.h" 23 #include "base/base_paths_win.h"
21 #include "base/path_service.h" 24 #include "base/path_service.h"
22 #include "base/strings/utf_string_conversions.h" 25 #include "base/strings/utf_string_conversions.h"
23 #elif defined(OS_ANDROID) 26 #elif defined(OS_ANDROID)
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 encoded[1] += (encoded[1] >= 10) ? 'A' - 10 : '0'; 153 encoded[1] += (encoded[1] >= 10) ? 'A' - 10 : '0';
151 encoded[2] = ch % 16; 154 encoded[2] = ch % 16;
152 encoded[2] += (encoded[2] >= 10) ? 'A' - 10 : '0'; 155 encoded[2] += (encoded[2] >= 10) ? 'A' - 10 : '0';
153 encoded_len = 3; 156 encoded_len = 3;
154 } 157 }
155 sanitized_origin->append(encoded, encoded_len); 158 sanitized_origin->append(encoded, encoded_len);
156 } 159 }
157 } 160 }
158 161
159 } // namespace filesystem 162 } // namespace filesystem
OLDNEW
« no previous file with comments | « components/filesystem/file_impl_unittest.cc ('k') | components/filesystem/util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698