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

Unified Diff: base/native_library_mac.mm

Issue 19052005: Move PathIsWritable, DirectoryExists, ContentsEqual, and TextContentsEqual to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/json/json_value_serializer_unittest.cc ('k') | base/nix/mime_util_xdg.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/native_library_mac.mm
diff --git a/base/native_library_mac.mm b/base/native_library_mac.mm
index 15f9e8849cd19aff01000a929b3739bd0ebb6cde..6544fcaed99eaf644bd36da96bdd864e8bd39327 100644
--- a/base/native_library_mac.mm
+++ b/base/native_library_mac.mm
@@ -45,8 +45,7 @@ static NativeLibraryObjCStatus GetObjCStatusForImage(
NativeLibrary LoadNativeLibrary(const base::FilePath& library_path,
std::string* error) {
// dlopen() etc. open the file off disk.
- if (library_path.Extension() == "dylib" ||
- !file_util::DirectoryExists(library_path)) {
+ if (library_path.Extension() == "dylib" || !DirectoryExists(library_path)) {
void* dylib = dlopen(library_path.value().c_str(), RTLD_LAZY);
if (!dylib)
return NULL;
« no previous file with comments | « base/json/json_value_serializer_unittest.cc ('k') | base/nix/mime_util_xdg.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698