Skip to content

Commit

Permalink
Remove isolated splits synthetic field trial
Browse files Browse the repository at this point in the history
This was launched in M89 and there are no plans for more experiments in
newer milestones.

Bug: 1126301
Change-Id: I3c9a19f54af45eebfcc203f336468b00e0521a55
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2768858
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: Nate Fischer <ntfschr@chromium.org>
Commit-Queue: Clark DuVall <cduvall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#864295}
  • Loading branch information
clarkduvall authored and Chromium LUCI CQ committed Mar 18, 2021
1 parent 0128f3b commit 33c62aa
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 34 deletions.
13 changes: 0 additions & 13 deletions android_webview/browser/aw_browser_main_parts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -153,19 +153,6 @@ void AwBrowserMainParts::RegisterSyntheticTrials() {
}
AwMetricsServiceAccessor::RegisterSyntheticFieldTrial(
metrics, kWebViewApkTypeTrial, apk_type_string);

// If isolated splits are enabled at build time, Monochrome and Trichrome will
// have a different bundle layout, so measure N+ even though isolated splits
// are only supported by Android in O+.
if (apk_type == ApkType::MONOCHROME &&
base::android::BuildInfo::GetInstance()->sdk_int() >=
base::android::SDK_VERSION_NOUGAT) {
static constexpr char kIsolatedSplitsTrial[] = "IsolatedSplitsSynthetic";
AwMetricsServiceAccessor::RegisterSyntheticFieldTrial(
metrics, kIsolatedSplitsTrial,
base::android::BundleUtils::IsolatedSplitsEnabled() ? "Enabled"
: "Disabled");
}
}

int AwBrowserMainParts::PreMainMessageLoopRun() {
Expand Down
5 changes: 0 additions & 5 deletions base/android/bundle_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ bool BundleUtils::IsBundle() {
return Java_BundleUtils_isBundleForNative(AttachCurrentThread());
}

// static
bool BundleUtils::IsolatedSplitsEnabled() {
return Java_BundleUtils_isolatedSplitsEnabled(AttachCurrentThread());
}

// static
void* BundleUtils::DlOpenModuleLibraryPartition(const std::string& library_name,
const std::string& partition,
Expand Down
3 changes: 0 additions & 3 deletions base/android/bundle_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ class BASE_EXPORT BundleUtils {
// Returns true if the current build is a bundle.
static bool IsBundle();

// Returns true if isolated splits are enabled.
static bool IsolatedSplitsEnabled();

// Helper function asking Java to resolve a library path. This is required for
// resolving a module library made available via SplitCompat, rather than in
// its eventual fully-installed state.
Expand Down
1 change: 0 additions & 1 deletion base/android/java/src/org/chromium/base/BundleUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public static void setIsBundle(boolean isBundle) {
sIsBundle = isBundle;
}

@CalledByNative
public static boolean isolatedSplitsEnabled() {
return BuildConfig.ISOLATED_SPLITS_ENABLED;
}
Expand Down
12 changes: 0 additions & 12 deletions chrome/browser/chrome_browser_field_trials.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,6 @@ void ChromeBrowserFieldTrials::RegisterSyntheticTrials() {
ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial(
kBackgroundThreadPoolTrial, group_name);
}

// If isolated splits are enabled at build time, Monochrome and Trichrome will
// have a different bundle layout, so measure N+ even though isolated splits
// are only supported by Android in O+.
if (base::android::BuildInfo::GetInstance()->sdk_int() >=
base::android::SDK_VERSION_NOUGAT) {
static constexpr char kIsolatedSplitsTrial[] = "IsolatedSplitsSynthetic";
ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial(
kIsolatedSplitsTrial,
base::android::BundleUtils::IsolatedSplitsEnabled() ? "Enabled"
: "Disabled");
}
#endif // defined(OS_ANDROID)
}

Expand Down

0 comments on commit 33c62aa

Please sign in to comment.