Change HttpEngine's stem name to `libhttpengine`
Previously, HttpEngine shared library name was
`libmainlinecronet.{version}` which is fine. However, we want to remove
the version in order to collect afdo samples, and improve the
performance of the library by optimizing the hot code.
diff --git a/components/cronet/android/java/src/org/chromium/net/impl/CronetLibraryLoader.java b/components/cronet/android/java/src/org/chromium/net/impl/CronetLibraryLoader.java
index 0abebdf00..23fede4 100644
--- a/components/cronet/android/java/src/org/chromium/net/impl/CronetLibraryLoader.java
+++ b/components/cronet/android/java/src/org/chromium/net/impl/CronetLibraryLoader.java
@@ -43,8 +43,9 @@
private static boolean sInitialized;
private static final String LIBRARY_NAME =
- (BuildConfig.CRONET_FOR_AOSP_BUILD ? "mainlinecronet." : "cronet.")
- + ImplVersion.getCronetVersion();
+ (BuildConfig.CRONET_FOR_AOSP_BUILD
+ ? "httpengine"
+ : "cronet." + ImplVersion.getCronetVersion());
private static final String TESTING_LIBRARY_NAME = LIBRARY_NAME + "_for_testing";
private static boolean sSwitchToTestLibrary;
@VisibleForTesting public static final String TAG = CronetLibraryLoader.class.getSimpleName();
diff --git a/components/cronet/gn2bp/gen_android_bp.py b/components/cronet/gn2bp/gen_android_bp.py
index a26ece8..e8b16f4 100755
--- a/components/cronet/gn2bp/gen_android_bp.py
+++ b/components/cronet/gn2bp/gen_android_bp.py
@@ -3082,7 +3082,7 @@
# The AOSP version of CronetLibraryLoader looks for the libcronet so
# with an extra suffix. Make sure the shared library name matches what
# the loader expects.
- module.stem = 'libmainline' + output_name
+ module.stem = 'libhttpengine'
else:
module.stem = 'lib' + output_name
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |