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

Unified Diff: base/native_library_win.cc

Issue 177923007: Move AppendFile and *CurrentDirectory to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/file_util_win.cc ('k') | base/path_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/native_library_win.cc
diff --git a/base/native_library_win.cc b/base/native_library_win.cc
index 2d437fa2a581fbad1b448c1f15607590d3c59008..3d2af6226292583891b9c4142e9a24a8d735bb15 100644
--- a/base/native_library_win.cc
+++ b/base/native_library_win.cc
@@ -17,23 +17,23 @@ typedef HMODULE (WINAPI* LoadLibraryFunction)(const wchar_t* file_name);
NativeLibrary LoadNativeLibraryHelper(const FilePath& library_path,
LoadLibraryFunction load_library_api) {
// LoadLibrary() opens the file off disk.
- base::ThreadRestrictions::AssertIOAllowed();
+ ThreadRestrictions::AssertIOAllowed();
// Switch the current directory to the library directory as the library
// may have dependencies on DLLs in this directory.
bool restore_directory = false;
FilePath current_directory;
- if (file_util::GetCurrentDirectory(&current_directory)) {
+ if (GetCurrentDirectory(&current_directory)) {
FilePath plugin_path = library_path.DirName();
if (!plugin_path.empty()) {
- file_util::SetCurrentDirectory(plugin_path);
+ SetCurrentDirectory(plugin_path);
restore_directory = true;
}
}
HMODULE module = (*load_library_api)(library_path.value().c_str());
if (restore_directory)
- file_util::SetCurrentDirectory(current_directory);
+ SetCurrentDirectory(current_directory);
return module;
}
« no previous file with comments | « base/file_util_win.cc ('k') | base/path_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698