Chromium Code Reviews| Index: base/android/linker/linker_jni.cc |
| diff --git a/base/android/linker/linker_jni.cc b/base/android/linker/linker_jni.cc |
| index 81c664729df0191b9e16d47545e0b7c8240b884d..a545c528ed336e44953138c9a51f8ad5647a1bf4 100644 |
| --- a/base/android/linker/linker_jni.cc |
| +++ b/base/android/linker/linker_jni.cc |
| @@ -599,19 +599,18 @@ jboolean CheckLibraryLoadFromApkSupport(JNIEnv* env, jclass clazz, |
| __FUNCTION__, apkfile_name_c_str); |
| void* address = mmap(NULL, PAGE_SIZE, PROT_EXEC, MAP_PRIVATE, fd, 0); |
| - jboolean success; |
| + jboolean status; |
|
petrcermak
2014/10/20 13:11:49
Does it make sense to say that the current status
|
| if (address == MAP_FAILED) { |
| - success = false; |
| + status = false; |
| } else { |
| - success = true; |
| + status = true; |
| munmap(address, PAGE_SIZE); |
| } |
| close(fd); |
| - LOG_INFO(" %ssupported\n", success ? "" : "NOT "); |
| - return success; |
| - |
| + LOG_INFO("%s: %s\n", __FUNCTION__, status ? "Supported" : "NOT supported"); |
| + return status; |
| } |
| const JNINativeMethod kNativeMethods[] = { |