| Index: base/base_paths_android.cc
|
| diff --git a/base/base_paths_android.cc b/base/base_paths_android.cc
|
| index 62b07dde07340f4d5a85071ff56d87f461ee0d2b..ca58179b6782fdc4d9ec283df14b4d97b5e688dc 100644
|
| --- a/base/base_paths_android.cc
|
| +++ b/base/base_paths_android.cc
|
| @@ -23,11 +23,10 @@
|
| case base::FILE_EXE: {
|
| char bin_dir[PATH_MAX + 1];
|
| int bin_dir_size = readlink(kProcSelfExe, bin_dir, PATH_MAX);
|
| - // TODO(falken): This PCHECK is for debugging crbug.com/600226.
|
| - // Revert to NOTREACHED when the cause of the bug is understood.
|
| - PCHECK(bin_dir_size > 0 && bin_dir_size <= PATH_MAX)
|
| - << "Unable to resolve " << kProcSelfExe
|
| - << ". bin_dir_size=" << bin_dir_size;
|
| + if (bin_dir_size < 0 || bin_dir_size > PATH_MAX) {
|
| + NOTREACHED() << "Unable to resolve " << kProcSelfExe << ".";
|
| + return false;
|
| + }
|
| bin_dir[bin_dir_size] = 0;
|
| *result = FilePath(bin_dir);
|
| return true;
|
|
|