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

Side by Side Diff: base/file_util_win.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 | « app/l10n_util_unittest.cc ('k') | base/native_library_win.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/file_util.h" 5 #include "base/file_util.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <propvarutil.h> 8 #include <propvarutil.h>
9 #include <psapi.h> 9 #include <psapi.h>
10 #include <shellapi.h> 10 #include <shellapi.h>
11 #include <shlobj.h> 11 #include <shlobj.h>
12 #include <time.h> 12 #include <time.h>
13 #include <string> 13 #include <string>
14 14
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/pe_image.h" 17 #include "base/pe_image.h"
18 #include "base/scoped_comptr_win.h" 18 #include "base/scoped_comptr_win.h"
19 #include "base/scoped_handle.h" 19 #include "base/scoped_handle.h"
20 #include "base/string_number_conversions.h" 20 #include "base/string_number_conversions.h"
21 #include "base/string_util.h" 21 #include "base/string_util.h"
22 #include "base/time.h" 22 #include "base/time.h"
23 #include "base/utf_string_conversions.h"
23 #include "base/win_util.h" 24 #include "base/win_util.h"
24 25
25 namespace file_util { 26 namespace file_util {
26 27
27 namespace { 28 namespace {
28 29
29 // Helper for NormalizeFilePath(), defined below. 30 // Helper for NormalizeFilePath(), defined below.
30 bool DevicePathToDriveLetterPath(const FilePath& device_path, 31 bool DevicePathToDriveLetterPath(const FilePath& device_path,
31 FilePath* drive_letter_path) { 32 FilePath* drive_letter_path) {
32 // Get the mapping of drive letters to device paths. 33 // Get the mapping of drive letters to device paths.
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 size_t offset = 0; 1055 size_t offset = 0;
1055 while (offset < actual_size_to_read) { 1056 while (offset < actual_size_to_read) {
1056 uint8 unused = *(touch + offset); 1057 uint8 unused = *(touch + offset);
1057 offset += step_size; 1058 offset += step_size;
1058 } 1059 }
1059 FreeLibrary(dll_module); 1060 FreeLibrary(dll_module);
1060 return true; 1061 return true;
1061 } 1062 }
1062 1063
1063 } // namespace file_util 1064 } // namespace file_util
OLDNEW
« no previous file with comments | « app/l10n_util_unittest.cc ('k') | base/native_library_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698