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

Side by Side Diff: base/native_library_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 | « base/file_util_win.cc ('k') | base/process_util_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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/native_library.h" 5 #include "base/native_library.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/string_util.h" 10 #include "base/utf_string_conversions.h"
11 11
12 namespace base { 12 namespace base {
13 13
14 // static 14 // static
15 NativeLibrary LoadNativeLibrary(const FilePath& library_path) { 15 NativeLibrary LoadNativeLibrary(const FilePath& library_path) {
16 // Switch the current directory to the library directory as the library 16 // Switch the current directory to the library directory as the library
17 // may have dependencies on DLLs in this directory. 17 // may have dependencies on DLLs in this directory.
18 bool restore_directory = false; 18 bool restore_directory = false;
19 FilePath current_directory; 19 FilePath current_directory;
20 if (file_util::GetCurrentDirectory(&current_directory)) { 20 if (file_util::GetCurrentDirectory(&current_directory)) {
(...skipping 21 matching lines...) Expand all
42 const char* name) { 42 const char* name) {
43 return GetProcAddress(library, name); 43 return GetProcAddress(library, name);
44 } 44 }
45 45
46 // static 46 // static
47 string16 GetNativeLibraryName(const string16& name) { 47 string16 GetNativeLibraryName(const string16& name) {
48 return name + ASCIIToUTF16(".dll"); 48 return name + ASCIIToUTF16(".dll");
49 } 49 }
50 50
51 } // namespace base 51 } // namespace base
OLDNEW
« no previous file with comments | « base/file_util_win.cc ('k') | base/process_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698