Index: base/base_paths_android.cc |
=================================================================== |
--- base/base_paths_android.cc (revision 156845) |
+++ base/base_paths_android.cc (working copy) |
@@ -11,22 +11,17 @@ |
#include "base/file_path.h" |
#include "base/file_util.h" |
#include "base/logging.h" |
+#include "base/process_util.h" |
-namespace { |
- |
-const char kSelfExe[] = "/proc/self/exe"; |
- |
-} // namespace |
- |
namespace base { |
bool PathProviderAndroid(int key, FilePath* result) { |
switch (key) { |
case base::FILE_EXE: { |
char bin_dir[PATH_MAX + 1]; |
- int bin_dir_size = readlink(kSelfExe, bin_dir, PATH_MAX); |
+ int bin_dir_size = readlink(kProcSelfExe, bin_dir, PATH_MAX); |
if (bin_dir_size < 0 || bin_dir_size > PATH_MAX) { |
- NOTREACHED() << "Unable to resolve " << kSelfExe << "."; |
+ NOTREACHED() << "Unable to resolve " << kProcSelfExe << "."; |
return false; |
} |
bin_dir[bin_dir_size] = 0; |